@@ -18,9 +18,16 @@ permissions:
18
18
contents : read
19
19
20
20
jobs :
21
- linux-x86_64 :
22
- runs-on : ubuntu-latest
23
- container : quay.io/pypa/manylinux_2_28_x86_64
21
+ linux :
22
+ runs-on : ${{ matrix.platform.runner }}
23
+ strategy :
24
+ matrix :
25
+ platform :
26
+ - runner : ubuntu-latest
27
+ target : x86_64
28
+ - runner : ubuntu-latest
29
+ target : aarch64
30
+ container : quay.io/pypa/manylinux_2_28_${{ matrix.platform.target }}
24
31
steps :
25
32
- uses : actions/checkout@v4
26
33
@@ -36,12 +43,17 @@ jobs:
36
43
java --version
37
44
native-image --version
38
45
- name : Build wheels
39
- run : |
40
- bash .github/workflows/build-wheels.sh
46
+ uses : PyO3/maturin-action@v1
47
+ with :
48
+ target : ${{ matrix.platform.target }}
49
+ working-directory : " bindings/python"
50
+ args : --release --out dist
51
+ sccache : ' true'
52
+ container : off
41
53
- name : Upload wheels
42
54
uses : actions/upload-artifact@v4
43
55
with :
44
- name : wheels-linux-x86_64
56
+ name : wheels-linux-${{ matrix.platform.target }}
45
57
path : bindings/python/dist
46
58
- name : pytest
47
59
shell : bash
@@ -150,7 +162,7 @@ jobs:
150
162
name : Release
151
163
runs-on : ubuntu-latest
152
164
if : " startsWith(github.ref, 'refs/tags/')"
153
- needs : [linux-x86_64 , windows, macos, sdist]
165
+ needs : [linux, windows, macos, sdist]
154
166
steps :
155
167
- uses : actions/download-artifact@v4
156
168
with :
0 commit comments