Skip to content

Commit 67d563e

Browse files
committed
Build wheels for both x86 and arm64
Fixes #12
1 parent 67ed305 commit 67d563e

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

.github/workflows/pyo3-wheels.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Wheels
22

33
on:
4+
pull_request:
45
workflow_dispatch:
56
inputs:
67
release:
@@ -30,8 +31,6 @@ jobs:
3031
- macos
3132

3233
exclude:
33-
- platform: windows
34-
arch: aarch64
3534
- platform: windows
3635
python-version: graalpy-24
3736

@@ -113,31 +112,28 @@ jobs:
113112
# - musllinux
114113
- windows
115114
- macos
115+
arch:
116+
- x86_64
117+
- aarch64
116118

117119
exclude:
118120
- platform: windows
119121
python-version: graalpy-24
120122

121123
include:
122-
# would probably need to run qemu inside the thing to full
123-
# test the archs...
124-
- arch: x86_64
125-
- platform: macos
126-
arch: aarch64
127-
128124
- wheel: "3.x"
129125
- python-version: "pypy-3.10"
130126
wheel: "pypy-3.10"
131127
- python-version: "graalpy-24"
132128
wheel: "graalpy-24"
133129

134-
- runs: ubuntu-latest
130+
- runner: ubuntu-latest
135131
- platform: windows
136-
runs: windows-latest
132+
runner: windows-latest
137133
- platform: macos
138-
runs: macos-latest
134+
runner: macos-latest
139135

140-
runs-on: ${{ matrix.runs }}
136+
runs-on: ${{ matrix.runner }}
141137

142138
steps:
143139
- name: Checkout working copy
@@ -149,6 +145,7 @@ jobs:
149145
uses: actions/setup-python@v5
150146
with:
151147
python-version: ${{ matrix.python-version }}
148+
152149
allow-prereleases: true
153150
- name: Retrieve wheel
154151
uses: actions/download-artifact@v4
@@ -177,7 +174,7 @@ jobs:
177174
name: Release
178175
runs-on: ubuntu-latest
179176
needs: [py-release-tests, py-release-sdist]
180-
if: ${{ inputs.release }}
177+
if: ${{ github.event == 'workflow_dispatch' && inputs.release }}
181178
permissions:
182179
# Use to sign the release artifacts
183180
id-token: write

0 commit comments

Comments
 (0)