Skip to content

Commit

Permalink
Update release/wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian committed Oct 10, 2024
1 parent 33b40b3 commit fd769b9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [39, 310, 311, 312, 313]
manylinux-image: [manylinux2014]
arch: [auto, aarch64]

Expand All @@ -25,7 +24,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11

- name: Install dependencies
run: |
Expand All @@ -38,11 +37,12 @@ jobs:
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: 'cp${{ matrix.python-version }}-*'
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-* cp313t-*
CIBW_SKIP: '*musllinux*'
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_MANYLINUX_*_IMAGE: ${{ matrix.manylinux-image }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux-image }}
CIBW_FREE_THREADED_SUPPORT: 1

- name: Publish wheels to PyPI Unix
continue-on-error: true
Expand All @@ -58,12 +58,6 @@ jobs:
strategy:
matrix:
os: [macos-latest, macos-13, windows-latest]
python-version: [39, 310, 311, 312, 313]
exclude:
- python-version: '38'
os: macos-latest
- python-version: '39'
os: macos-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -82,10 +76,20 @@ jobs:
run: python -m pip install cibuildwheel -U

- name: Build wheels
if: matrix.os == 'macos-latest'
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: 'cp${{ matrix.python-version }}-*'
CIBW_BUILD: cp310-* cp311-* cp312-* cp313-* cp313t-*
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.15
CIBW_FREE_THREADED_SUPPORT: 1

- name: Build wheels
if: matrix.os != 'macos-latest'
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-* cp313t-*
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0
CIBW_FREE_THREADED_SUPPORT: 1

- name: Publish wheels to PyPI Unix
if: matrix.os != 'windows-latest'
Expand All @@ -112,7 +116,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit fd769b9

Please sign in to comment.