Skip to content

Commit

Permalink
Update cibuildwheels to 2.21.3 and gh actions to checkout, artifacts …
Browse files Browse the repository at this point in the history
…to v4 and and python to v5

v3 are going to be removed soon (nov 30): https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
  • Loading branch information
PiotrCzapla committed Oct 18, 2024
1 parent bfa4e6f commit 28eec02
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: Build SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -39,25 +39,31 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
# Used to host cibuildwheel
- uses: actions/setup-python@v5

- uses: pypa/cibuildwheel@v2.16.5
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.21.3

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS_MACOS: auto universal2
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
CIBW_REPAIR_WHEEL_COMMAND_LINUX: ""
# Repair windows wheel
# CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel"
# CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -w {dest_dir} {wheel}"
# use default repair command on linux and macos
# for windows setup.py repairwheel step should solve it

- name: Verify clean directory
run: git diff --exit-code
shell: bash

- name: List files
run: ls -la wheelhouse

- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v3 # v4 does not support overwriting artifacts anymore.
with:
path: wheelhouse/*.whl

Expand All @@ -69,11 +75,11 @@ jobs:
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
Expand Down

0 comments on commit 28eec02

Please sign in to comment.