-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update cibuildwheels to 2.21.3 and gh actions to checkout, artifacts …
…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
1 parent
bfa4e6f
commit 263f3c5
Showing
3 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
name: Build SDist | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
|
@@ -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/[email protected] | ||
- 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 | ||
|
||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters