Skip to content

Commit bf4949f

Browse files
committed
try and make linux work again
1 parent 642e73c commit bf4949f

1 file changed

Lines changed: 18 additions & 60 deletions

File tree

.github/workflows/CI.yml

Lines changed: 18 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -15,70 +15,28 @@ permissions:
1515

1616
jobs:
1717
linux:
18-
runs-on: ${{ matrix.platform.runner }}
18+
runs-on: ubuntu-latest
19+
if: "startsWith(github.ref, 'refs/tags/')"
1920
strategy:
2021
matrix:
21-
platform:
22-
- runner: ubuntu-22.04
23-
target: x86_64
24-
- runner: ubuntu-22.04
25-
target: x86
26-
- runner: ubuntu-22.04
27-
target: aarch64
28-
- runner: ubuntu-22.04
29-
target: armv7
30-
- runner: ubuntu-22.04
31-
target: s390x
32-
- runner: ubuntu-22.04
33-
target: ppc64le
22+
target: [x86_64]
3423
steps:
35-
- uses: actions/checkout@v4
36-
- uses: actions/setup-python@v5
37-
with:
38-
python-version: 3.x
39-
- name: Build wheels
40-
uses: PyO3/maturin-action@v1
41-
with:
42-
target: ${{ matrix.platform.target }}
43-
args: --release --out dist --find-interpreter
44-
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
45-
manylinux: auto
46-
- name: Upload wheels
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: wheels-linux-${{ matrix.platform.target }}
50-
path: dist
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+
5139

52-
musllinux:
53-
runs-on: ${{ matrix.platform.runner }}
54-
strategy:
55-
matrix:
56-
platform:
57-
- runner: ubuntu-22.04
58-
target: x86_64
59-
- runner: ubuntu-22.04
60-
target: x86
61-
- runner: ubuntu-22.04
62-
target: aarch64
63-
- runner: ubuntu-22.04
64-
target: armv7
65-
steps:
66-
- uses: actions/checkout@v4
67-
- uses: actions/setup-python@v5
68-
with:
69-
python-version: 3.x
70-
- name: Build wheels
71-
uses: PyO3/maturin-action@v1
72-
with:
73-
target: ${{ matrix.platform.target }}
74-
args: --release --out dist --find-interpreter
75-
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
76-
manylinux: musllinux_1_2
77-
- name: Upload wheels
78-
uses: actions/upload-artifact@v4
79-
with:
80-
name: wheels-musllinux-${{ matrix.platform.target }}
81-
path: dist
8240

8341
windows:
8442
runs-on: ${{ matrix.platform.runner }}

0 commit comments

Comments
 (0)