@@ -14,29 +14,61 @@ permissions:
14
14
contents : read
15
15
16
16
jobs :
17
+ # linux:
18
+ # runs-on: ubuntu-latest
19
+ # if: "startsWith(github.ref, 'refs/tags/')"
20
+ # strategy:
21
+ # matrix:
22
+ # target: [x86_64]
23
+ # steps:
24
+ # - uses: actions/checkout@v2
25
+ # - uses: actions/setup-python@v2
26
+ # with:
27
+ # python-version: 3.9
28
+ # architecture: x64
29
+ # - name: Make wheel
30
+ # run: |
31
+ # sudo docker build -t flatterer-anylinux .
32
+ # sudo docker run -v $(pwd):/io flatterer-anylinux build -f --release --out dist
33
+ # - name: Upload wheels
34
+ # uses: actions/upload-artifact@v4
35
+ # with:
36
+ # name: wheels-linux-x86_64
37
+ # path: dist
17
38
linux :
18
- runs-on : ubuntu-latest
19
- if : " startsWith(github.ref, 'refs/tags/')"
39
+ runs-on : ${{ matrix.platform.runner }}
20
40
strategy :
21
41
matrix :
22
- target : [x86_64]
42
+ platform :
43
+ - runner : ubuntu-22.04
44
+ target : x86_64
45
+ - runner : ubuntu-22.04
46
+ target : x86
47
+ - runner : ubuntu-22.04
48
+ target : aarch64
49
+ - runner : ubuntu-22.04
50
+ target : armv7
51
+ - runner : ubuntu-22.04
52
+ target : s390x
53
+ - runner : ubuntu-22.04
54
+ target : ppc64le
23
55
steps :
24
- - uses : actions/checkout@v2
25
- - uses : actions/setup-python@v2
26
- with :
27
- python-version : 3.9
28
- architecture : x64
29
- - name : Make wheel
30
- run : |
31
- sudo docker build -t flatterer-anylinux .
32
- sudo docker run -v $(pwd):/io flatterer-anylinux build -f -- release --out dist
33
- - name : Upload wheels
34
- uses : actions/upload-artifact@v4
35
- with :
36
- name : wheels-linux-x86_64
37
- path : dist
38
-
39
-
56
+ - uses : actions/checkout@v4
57
+ - uses : actions/setup-python@v5
58
+ with :
59
+ python-version : 3.x
60
+ - name : Build wheels
61
+ uses : PyO3/maturin-action@v1
62
+ with :
63
+ target : ${{ matrix.platform.target }}
64
+ args : -- release --out dist --find-interpreter
65
+ sccache : ${{ !startsWith(github.ref, 'refs/tags/') }}
66
+ manylinux : auto
67
+ - name : Upload wheels
68
+ uses : actions/upload-artifact@v4
69
+ with :
70
+ name : wheels-linux-${{ matrix.platform.target }}
71
+ path : dist
40
72
41
73
windows :
42
74
runs-on : ${{ matrix.platform.runner }}
0 commit comments