Skip to content

Commit f20d13b

Browse files
committed
edit: workflow file
1 parent 5bc17c5 commit f20d13b

1 file changed

Lines changed: 62 additions & 62 deletions

File tree

.github/workflows/release.yml

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -41,40 +41,40 @@ jobs:
4141
run: |
4242
cargo test --verbose
4343
44-
# linux:
45-
# runs-on: ${{ matrix.platform.runner }}
46-
# timeout-minutes: 200
47-
# strategy:
48-
# matrix:
49-
# platform:
50-
# - runner: ubuntu-22.04
51-
# target: x86_64
52-
# # Extra specific case, for old windows versions
53-
# # - runner: ubuntu-22.04
54-
# # target: x86
55-
# - runner: ubuntu-22.04
56-
# target: aarch64
57-
# - runner: ubuntu-22.04
58-
# target: s390x
59-
# - runner: ubuntu-22.04
60-
# target: ppc64le
61-
# steps:
62-
# - uses: actions/checkout@v4
63-
# - uses: actions/setup-python@v5
64-
# with:
65-
# python-version: 3.x
66-
# - name: Build wheels
67-
# uses: PyO3/maturin-action@v1
68-
# with:
69-
# target: ${{ matrix.platform.target }}
70-
# args: --release --out dist --find-interpreter
71-
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
72-
# manylinux: auto
73-
# - name: Upload wheels
74-
# uses: actions/upload-artifact@v4
75-
# with:
76-
# name: wheels-linux-${{ matrix.platform.target }}
77-
# path: dist
44+
linux:
45+
runs-on: ${{ matrix.platform.runner }}
46+
timeout-minutes: 200
47+
strategy:
48+
matrix:
49+
platform:
50+
- runner: ubuntu-22.04
51+
target: x86_64
52+
# Extra specific case, for old windows versions
53+
# - runner: ubuntu-22.04
54+
# target: x86
55+
- runner: ubuntu-22.04
56+
target: aarch64
57+
- runner: ubuntu-22.04
58+
target: s390x
59+
- runner: ubuntu-22.04
60+
target: ppc64le
61+
steps:
62+
- uses: actions/checkout@v4
63+
- uses: actions/setup-python@v5
64+
with:
65+
python-version: 3.x
66+
- name: Build wheels
67+
uses: PyO3/maturin-action@v1
68+
with:
69+
target: ${{ matrix.platform.target }}
70+
args: --release --out dist --find-interpreter
71+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
72+
manylinux: auto
73+
- name: Upload wheels
74+
uses: actions/upload-artifact@v4
75+
with:
76+
name: wheels-linux-${{ matrix.platform.target }}
77+
path: dist
7878

7979
windows:
8080
runs-on: ${{ matrix.platform.runner }}
@@ -85,8 +85,8 @@ jobs:
8585
- runner: windows-latest
8686
target: x64
8787
# Extra specific case, for old windows versions
88-
# - runner: windows-latest
89-
# target: x86
88+
- runner: windows-latest
89+
target: x86
9090
steps:
9191
- uses: actions/checkout@v4
9292
- uses: actions/setup-python@v5
@@ -105,31 +105,31 @@ jobs:
105105
name: wheels-windows-${{ matrix.platform.target }}
106106
path: dist
107107

108-
# macos:
109-
# runs-on: ${{ matrix.platform.runner }}
110-
# strategy:
111-
# matrix:
112-
# platform:
113-
# - runner: macos-13
114-
# target: x86_64
115-
# - runner: macos-14
116-
# target: aarch64
117-
# steps:
118-
# - uses: actions/checkout@v4
119-
# - uses: actions/setup-python@v5
120-
# with:
121-
# python-version: 3.x
122-
# - name: Build wheels
123-
# uses: PyO3/maturin-action@v1
124-
# with:
125-
# target: ${{ matrix.platform.target }}
126-
# args: --release --out dist --find-interpreter
127-
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
128-
# - name: Upload wheels
129-
# uses: actions/upload-artifact@v4
130-
# with:
131-
# name: wheels-macos-${{ matrix.platform.target }}
132-
# path: dist
108+
macos:
109+
runs-on: ${{ matrix.platform.runner }}
110+
strategy:
111+
matrix:
112+
platform:
113+
- runner: macos-13
114+
target: x86_64
115+
- runner: macos-14
116+
target: aarch64
117+
steps:
118+
- uses: actions/checkout@v4
119+
- uses: actions/setup-python@v5
120+
with:
121+
python-version: 3.x
122+
- name: Build wheels
123+
uses: PyO3/maturin-action@v1
124+
with:
125+
target: ${{ matrix.platform.target }}
126+
args: --release --out dist --find-interpreter
127+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
128+
- name: Upload wheels
129+
uses: actions/upload-artifact@v4
130+
with:
131+
name: wheels-macos-${{ matrix.platform.target }}
132+
path: dist
133133

134134
sdist:
135135
runs-on: ubuntu-latest
@@ -150,7 +150,7 @@ jobs:
150150
name: Release
151151
runs-on: ubuntu-latest
152152
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
153-
needs: [test, windows, sdist]
153+
needs: [test, windows, linux, sdist]
154154
permissions:
155155
id-token: write
156156
contents: write

0 commit comments

Comments
 (0)