Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
andife committed Jul 14, 2024
1 parent fac5efa commit 8c02894
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/release_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.10'] #['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.10'] # ['3.8', '3.9', '3.10', '3.11', '3.12']
target-architecture: ['x86_64', 'arm64']

steps:
Expand Down Expand Up @@ -139,21 +139,21 @@ jobs:
arch -${{ matrix.target-architecture }} python -m pip install --upgrade dist/*.whl
arch -${{ matrix.target-architecture }} pytest
# Only triggered by weekly event on certain CI
- name: Build and upload source distribution to PyPI weekly
if: github.event_name == 'schedule' && matrix.python-version == '3.10' && matrix.target-architecture == 'arm64'
run: |
# Build and upload source distribution to PyPI
git clean -xdf
sed -i '' 's/name = "onnx"/name = "onnx-weekly"/' 'pyproject.toml'
ONNX_PREVIEW_BUILD=1 python -m build --sdist
twine upload dist/* --repository-url https://upload.pypi.org/legacy/ -u ${{ secrets.ONNXWEEKLY_USERNAME }} -p ${{ secrets.ONNXWEEKLY_TOKEN }}
# Test weekly source distribution from PyPI
python -m pip uninstall -y onnx-weekly
python -m pip install setuptools
python -m pip install --use-deprecated=legacy-resolver --no-binary onnx-weekly onnx-weekly
pytest
# # Only triggered by weekly event on certain CI
# - name: Build and upload source distribution to PyPI weekly
# if: github.event_name == 'schedule' && matrix.python-version == '3.10' && matrix.target-architecture == 'arm64'
# run: |
# # Build and upload source distribution to PyPI
# git clean -xdf
# sed -i '' 's/name = "onnx"/name = "onnx-weekly"/' 'pyproject.toml'
# ONNX_PREVIEW_BUILD=1 python -m build --sdist
# twine upload dist/* --repository-url https://upload.pypi.org/legacy/ -u ${{ secrets.ONNXWEEKLY_USERNAME }} -p ${{ secrets.ONNXWEEKLY_TOKEN }}

# # Test weekly source distribution from PyPI
# python -m pip uninstall -y onnx-weekly
# python -m pip install setuptools
# python -m pip install --use-deprecated=legacy-resolver --no-binary onnx-weekly onnx-weekly
# pytest

- name: Verify ONNX with ONNX Runtime PyPI package
if: matrix.python-version != '3.12'
Expand Down

0 comments on commit 8c02894

Please sign in to comment.