5
name: LinuxRelease_x86_64
19
if: github.event_name != 'pull_request' || startsWith( github.base_ref, 'rel-') || contains( github.event.pull_request.labels.*.name, 'run release CIs')
20
runs-on: ubuntu-latest
23
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
27
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
28
- name: Checkout submodules
31
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
32
git submodule sync --recursive
33
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
35
- name: Build manylinux2014_x86_64
36
uses: docker://quay.io/pypa/manylinux2014_x86_64:latest
39
args: .github/workflows/manylinux/entrypoint.sh ${{ matrix.python-version }} manylinux2014_x86_64 ${{ github.event_name }}
41
- name: Set up Python ${{ matrix.python-version }}
42
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
44
python-version: ${{ matrix.python-version }}
45
architecture: ${{ matrix.architecture }}
47
- name: Install python dependencies
49
python -m pip install -q --upgrade pip
50
python -m pip install -q -r requirements-release.txt
52
- name: Install protobuf in the GitHub Action environment for testing the wheel
54
source workflow_scripts/protobuf/build_protobuf_unix.sh $(nproc)
56
- name: Test wheel with Python ${{ matrix.python-version }}
58
python -m pip install dist/*manylinux2014_x86_64.whl
61
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
63
name: wheels-${{ inputs.os }}-${{ matrix.python-version }}
68
- name: Upload wheel to PyPI weekly
69
if: (github.event_name == 'schedule')
71
twine upload --verbose dist/*.whl --repository-url https://upload.pypi.org/legacy/ -u ${{ secrets.ONNXWEEKLY_USERNAME }} -p ${{ secrets.ONNXWEEKLY_TOKEN }}
74
- name: Verify ONNX with the latest numpy
77
python -m pip uninstall -y numpy onnx && python -m pip install numpy
78
python -m pip install dist/*manylinux2014_x86_64.whl
81
- name: Verify ONNX with the latest protobuf
84
python -m pip uninstall -y protobuf onnx && python -m pip install protobuf
85
python -m pip install dist/*manylinux2014_x86_64.whl
88
- name: Verify ONNX with the minimumly supported packages
91
python -m pip uninstall -y numpy protobuf onnx && python -m pip install -r requirements-min.txt
92
python -m pip install dist/*manylinux2014_x86_64.whl
95
- name: Verify ONNX with ONNX Runtime PyPI package
96
if: matrix.python-version != '3.12'
98
python -m pip uninstall -y protobuf numpy && python -m pip install -q -r requirements-release.txt
99
python -m pip install -q onnxruntime==1.17.3
100
export ORT_MAX_IR_SUPPORTED_VERSION=9
101
export ORT_MAX_ML_OPSET_SUPPORTED_VERSION=3
102
export ORT_MAX_ONNX_OPSET_SUPPORTED_VERSION=20