Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions .github/workflows/release_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: ./onnx
- name: Checkout ONNX submodules
shell: bash
run: |
cd onnx
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
submodule: 'recursive'

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
Expand All @@ -62,6 +56,7 @@ jobs:
sed -i '' '/-r requirements-reference.txt/d' requirements-release.txt
}
python -m pip install -q -r requirements-release.txt
python -m pip install cmake

- name: Build ONNX wheel
run: |
Expand Down Expand Up @@ -104,31 +99,35 @@ jobs:
if: ${{ always() }}
run: |
cd onnx
python -m pip uninstall -y numpy onnx && python -m pip install numpy
python -m pip uninstall -y numpy onnx
python -m pip install numpy
Get-ChildItem -Path dist/*.whl | foreach {python -m pip install --upgrade $_.fullname}
pytest

- name: Verify ONNX with the latest protobuf
if: ${{ always() }}
run: |
cd onnx
python -m pip uninstall -y protobuf onnx && python -m pip install protobuf
python -m pip uninstall -y protobuf onnx
python -m pip install protobuf
Get-ChildItem -Path dist/*.whl | foreach {python -m pip install --upgrade $_.fullname}
pytest

- name: Verify ONNX with the minimumly supported packages
if: ${{ always() }}
run: |
cd onnx
python -m pip uninstall -y protobuf numpy onnx && python -m pip install -r requirements-min.txt
python -m pip uninstall -y protobuf numpy onnx
python -m pip install -r requirements-min.txt
Get-ChildItem -Path dist/*.whl | foreach {python -m pip install --upgrade $_.fullname}
pytest

- name: Verify ONNX with ONNX Runtime PyPI package
if: matrix.python-version != '3.12'
run: |
cd onnx
python -m pip uninstall -y protobuf numpy && python -m pip install -q -r requirements-release.txt
python -m pip uninstall -y protobuf numpy
python -m pip install -q -r requirements-release.txt
python -m pip install -q onnxruntime==1.17.3
$Env:ORT_MAX_IR_SUPPORTED_VERSION=9
$Env:ORT_MAX_ML_OPSET_SUPPORTED_VERSION=3
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/win_no_exception_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: ./onnx

- name: Checkout ONNX submodules
shell: bash
run: |
cd onnx
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
submodules: 'recursive'

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
Expand All @@ -49,6 +42,11 @@ jobs:
with:
msbuild-architecture: ${{ matrix.architecture }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install cmake

- name: Build and test ONNX binaries
run: |
. .\onnx\workflow_scripts\protobuf\build_protobuf_win.ps1 -arch ${{ matrix.architecture }}
Expand Down