Skip to content

Commit

Permalink
fix building wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Jun 25, 2024
1 parent 9c91962 commit af59685
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-wheels-macos-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- wheel
tags:
- '*'
workflow_dispatch:

concurrency:
group: build-wheels-macos-arm64-${{ github.ref }}
Expand Down Expand Up @@ -60,7 +61,13 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
shell: bash
run: |
python3 -m pip install --upgrade pip
python3 -m pip install wheel twine setuptools
opts='--break-system-packages'
v=${{ matrix.python-version }}
if [[ $v == cp37 || $v == cp38 || $v == cp39 ]]; then
opts=''
fi
python3 -m pip install $opts --upgrade pip
python3 -m pip install $opts wheel twine setuptools
twine upload ./wheelhouse/*.whl
11 changes: 9 additions & 2 deletions .github/workflows/build-wheels-macos-x64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- wheel
tags:
- '*'
workflow_dispatch:

concurrency:
group: build-wheels-macos-x64-${{ github.ref }}
Expand Down Expand Up @@ -60,7 +61,13 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
shell: bash
run: |
python3 -m pip install --upgrade pip
python3 -m pip install wheel twine setuptools
opts='--break-system-packages'
v=${{ matrix.python-version }}
if [[ $v == cp37 || $v == cp38 || $v == cp39 ]]; then
opts=''
fi
python3 -m pip install $opts --upgrade pip
python3 -m pip install $opts wheel twine setuptools
twine upload ./wheelhouse/*.whl
1 change: 1 addition & 0 deletions .github/workflows/build-wheels-win32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- wheel
tags:
- '*'
workflow_dispatch:

concurrency:
group: build-wheels-win32-${{ github.ref }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-wheels-win64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- wheel
tags:
- '*'
workflow_dispatch:

concurrency:
group: build-wheels-win64-${{ github.ref }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- wheel
tags:
- '*'
workflow_dispatch:

concurrency:
group: build-wheels-${{ github.ref }}
Expand Down

0 comments on commit af59685

Please sign in to comment.