@@ -53,21 +53,19 @@ jobs:
5353 and d['arch'] == 'aarch64'
5454 and d['python-version'] != '3.x'
5555 )
56+ # windows and graal don't work
57+ if not (d['platform'] == 'windows' and d['python-version'] == 'graalpy-24')
5658 ]
5759 for job in matrix:
5860 match job['platform']:
5961 case 'linux':
6062 job['manylinux'] = 'auto'
61- job['args'] = '--release --out dist -m ua-parser-py/Cargo.toml -i python --zig'
63+ job['args'] = ' --zig'
6264 case 'mussllinux':
6365 job['manylinux'] = 'musllinux_1_2'
64- job['args'] = '--release --out dist -m ua-parser-py/Cargo.toml'
65- case _:
66- job['args'] = '--release --out dist -m ua-parser-py/Cargo.toml -i python'
6766
6867 job['runs'] = builder[job['platform'], job['arch']]
6968
70- print(pprint.pprint(matrix))
7169 with open(os.environ['GITHUB_OUTPUT'], 'w') as f:
7270 f.write("matrix=")
7371 json.dump({'include': matrix}, f)
8280 runs-on : ${{ matrix.runs }}
8381
8482 steps :
83+ - if : matrix.platform != 'windows'
84+ run : uname -a
85+ - if : matrix.platform == 'windows'
86+ run : (Get-CimInstance Win32_operatingsystem).OSArchitecture
8587 - uses : actions/checkout@v4
8688 with :
8789 persist-credentials : false
@@ -107,12 +109,12 @@ jobs:
107109 ~/.cache/pip
108110 ~/.cache/pip-graalpy
109111 key : ${{ runner.os }}-pip-maturin-${{ matrix.python-version }}
110-
112+ - if : (matrix.platform == 'windows' && matrix.arch == 'aarch64') || (matrix.platform == 'macos' && matrix.arch == 'x86_64')
113+ uses : actions-rust-lang/setup-rust-toolchain@v1
111114 - name : Build wheels
112115 uses : PyO3/maturin-action@v1
113116 with :
114- target : ${{ matrix.arch }}
115- args : ${{ matrix.args }}
117+ args : --release --out dist -m ua-parser-py/Cargo.toml --find-interpreter ${{ matrix.args }}
116118 sccache : ' true'
117119 manylinux : ${{ matrix.manylinux }}
118120 - name : Upload wheels
@@ -168,6 +170,12 @@ jobs:
168170 exclude :
169171 - platform : windows
170172 python-version : graalpy-24
173+ - platform : windows
174+ arch : aarch64
175+ python-version : pypy-3.1
176+ - platform : windows
177+ arch : aarch64
178+ python-version : pypy-3.11
171179
172180 include :
173181 - wheel : " 3.x"
@@ -179,10 +187,18 @@ jobs:
179187 wheel : " graalpy-24"
180188
181189 - runner : ubuntu-latest
190+ - arch : aarch64
191+ runner : ubuntu-20.04-arm
182192 - platform : windows
183193 runner : windows-latest
194+ - platform : windows
195+ arch : aarch64
196+ runner : windows-11-arm
184197 - platform : macos
185198 runner : macos-latest
199+ - platform : macos
200+ arch : x86_64
201+ runner : macos-13
186202
187203 runs-on : ${{ matrix.runner }}
188204
@@ -211,7 +227,7 @@ jobs:
211227 - name : Update pip
212228 run : python -mpip install --upgrade pip
213229 - name : Maybe install libyaml-dev
214- if : matrix.runs == 'ubuntu-latest'
230+ if : startsWith( matrix.runs, 'ubuntu-latest')
215231 run : |
216232 # if binary wheels are not available for the current
217233 # package install libyaml-dev so we can install pyyaml
@@ -230,7 +246,7 @@ jobs:
230246 name : Release
231247 runs-on : ubuntu-latest
232248 needs : [py-release-tests, py-release-sdist]
233- if : ${{ github.event == 'workflow_dispatch' && inputs.release }}
249+ if : github.event == 'workflow_dispatch' && inputs.release
234250 permissions :
235251 # Use to sign the release artifacts
236252 id-token : write
0 commit comments