Skip to content

Commit c554891

Browse files
committed
ci: build action
1 parent 639fb16 commit c554891

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/workflows/release_pyton_pytest.yml

+19-7
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,16 @@ permissions:
1818
contents: read
1919

2020
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 }}
2431
steps:
2532
- uses: actions/checkout@v4
2633
- uses: graalvm/[email protected]
@@ -36,12 +43,17 @@ jobs:
3643
java --version
3744
native-image --version
3845
- 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
4153
- name: Upload wheels
4254
uses: actions/upload-artifact@v4
4355
with:
44-
name: wheels-linux-x86_64
56+
name: wheels-linux-${{ matrix.platform.target }}
4557
path: bindings/python/dist
4658
- name: pytest
4759
shell: bash
@@ -150,7 +162,7 @@ jobs:
150162
name: Release
151163
runs-on: ubuntu-latest
152164
if: "startsWith(github.ref, 'refs/tags/')"
153-
needs: [linux-x86_64, windows, macos, sdist]
165+
needs: [linux, windows, macos, sdist]
154166
steps:
155167
- uses: actions/download-artifact@v4
156168
with:

0 commit comments

Comments
 (0)