Skip to content

Commit 1e1dee9

Browse files
authored
ci: update to cibuildwheel v3 action (#141)
* ci: update to cibuildwheel v3 action * ci: better upload/download artifact action usage * ci: enable macos universal builds * ci: only build macos universal wheels on arm, not x86 * ci: revert testing changes [ci test build]
1 parent e681e8d commit 1e1dee9

File tree

1 file changed

+10
-24
lines changed

1 file changed

+10
-24
lines changed

.github/workflows/python-package.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -115,28 +115,25 @@ jobs:
115115
strategy:
116116
fail-fast: true
117117
matrix:
118-
os: ["ubuntu-20.04", "macos-13", "windows-2019"]
118+
os:
119+
- ubuntu-latest
120+
- ubuntu-24.04-arm
121+
- windows-latest
122+
- windows-11-arm
123+
- macos-latest
124+
- macos-13 # Intel builds
119125
steps:
120126
- uses: actions/checkout@v4
121127
with:
122128
submodules: true
123-
- name: Set up QEMU
124-
if: runner.os == 'Linux'
125-
uses: docker/setup-qemu-action@v3
126-
with:
127-
platforms: arm64
128-
- uses: pypa/[email protected]
129+
- uses: pypa/[email protected]
129130
env:
130-
CIBW_SKIP: cp36-* cp37-* pp*-win* pp*-macosx* *_i686
131-
CIBW_TEST_SKIP: "*-win_arm64"
132-
CIBW_ARCHS_LINUX: "x86_64 aarch64"
133-
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2"
134-
CIBW_ARCHS_WINDOWS: "AMD64 ARM64"
131+
CIBW_ARCHS_MACOS: ${{ runner.arch == 'ARM64' && 'auto universal2' || 'auto' }}
135132
with:
136133
output-dir: dist
137134
- uses: actions/upload-artifact@v4
138135
with:
139-
name: wheels-${{ runner.os }}
136+
name: wheels-${{ runner.os }}-${{ runner.arch }}
140137
path: dist
141138

142139
# NOTE: release step only runs on tag builds
@@ -147,17 +144,6 @@ jobs:
147144
needs: [build]
148145
steps:
149146
- uses: actions/download-artifact@v4
150-
with:
151-
name: wheels
152-
- uses: actions/download-artifact@v4
153-
with:
154-
name: wheels-Linux
155-
- uses: actions/download-artifact@v4
156-
with:
157-
name: wheels-macOS
158-
- uses: actions/download-artifact@v4
159-
with:
160-
name: wheels-Windows
161147
- uses: actions/setup-python@v5
162148
with:
163149
python-version: "3.10"

0 commit comments

Comments
 (0)