Skip to content

Commit 99d715e

Browse files
authored
Fix?
Refreshing the code with the latest example from the doc: https://cibuildwheel.pypa.io/en/stable/faq/#emulation
1 parent 5b2b83c commit 99d715e

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/buildwheels.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,24 @@ jobs:
3939
strategy:
4040
fail-fast: false
4141
matrix:
42-
include:
43-
- os: ubuntu-latest
44-
cibw_archs: "native armv7l"
45-
- os: windows-latest
46-
cibw_archs: "native ARM64"
47-
- os: macos-latest
48-
cibw_archs: "x86_64 universal2 arm64"
42+
# macos-13 is an intel runner, macos-14 is apple silicon
43+
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14]
4944

5045
steps:
5146
- uses: actions/checkout@v3
5247
- name: Set up QEMU
53-
if: matrix.cibw_archs == 'aarch64' || matrix.cibw_archs == 'armv7l'
54-
uses: docker/setup-qemu-action@v2
48+
if: runner.os == 'Linux' && runner.arch == 'X64'
49+
uses: docker/setup-qemu-action@v3
5550
with:
56-
platforms: arm64, armv7l
51+
platforms: all
5752
- name: Build wheels
5853
uses: pypa/cibuildwheel@v2.23.2
5954
env:
6055
CIBW_TEST_REQUIRES: hypothesis pytest
6156
CIBW_TEST_COMMAND: "py.test {project}/test.py -v && python {project}/cydoctest.py -v"
6257
CIBW_SKIP: "pp* cp36-* cp37-*"
6358
CIBW_ARCHS: ${{ matrix.cibw_archs }}
59+
CIBW_ARCHS_LINUX: ${{ runner.arch == 'X64' && 'auto' || 'auto armv7l' }}
6460
CIBW_TEST_SKIP: "*-win_arm64"
6561
CIBW_BUILD_FRONTEND: "build"
6662

0 commit comments

Comments
 (0)