Skip to content

Commit 2a470b4

Browse files
authored
Update release.yaml
1 parent db5b394 commit 2a470b4

File tree

1 file changed

+45
-51
lines changed

1 file changed

+45
-51
lines changed

.github/workflows/release.yaml

Lines changed: 45 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,76 +3,70 @@ name: release
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- 'v*'
77

88
jobs:
9-
linux-build:
10-
name: Build Linux Wheels (manylinux)
9+
linux-wheels:
1110
runs-on: ubuntu-latest
1211
container: quay.io/pypa/manylinux2014_x86_64
1312
steps:
14-
- uses: actions/checkout@v4
15-
- name: Build wheels
16-
run: |
17-
curl https://sh.rustup.rs -sSf | sh -s -- -y
18-
source $HOME/.cargo/env
19-
rustup default nightly
20-
bash .github/workflows/build-wheels.sh
21-
22-
linux-upload:
23-
name: Upload Linux Artifact
24-
needs: [linux-build]
25-
runs-on: ubuntu-latest
26-
steps:
27-
- uses: actions/upload-artifact@v4
28-
with:
29-
name: linux-wheels
30-
path: wheelhouse/
13+
- uses: actions/checkout@v1
14+
- name: Build wheels
15+
run: |
16+
curl https://sh.rustup.rs -sSf | sh -s -- -y
17+
source $HOME/.cargo/env
18+
rustup default nightly
19+
bash .github/workflows/build-wheels.sh
20+
- uses: actions/upload-artifact@v3
21+
with:
22+
name: linux-wheels
23+
path: wheelhouse/
3124

3225
osx-wheels:
3326
runs-on: macos-latest
3427
strategy:
3528
matrix:
3629
python-version: ["3.13", "3.14"]
3730
steps:
38-
- uses: actions/checkout@v4
39-
- uses: actions-rs/toolchain@v1
40-
with:
41-
toolchain: "nightly"
42-
default: true
43-
- uses: actions/setup-python@v4
44-
with:
45-
python-version: ${{ matrix.python-version }}
46-
- name: Build wheels
47-
run: |
48-
python3 -m pip install maturin
49-
maturin build --release
50-
- uses: actions/upload-artifact@v4
51-
with:
52-
name: osx-${{ matrix.python-version }}-wheel
53-
path: target/wheels
31+
- uses: actions/checkout@v1
32+
- uses: actions-rs/toolchain@v1
33+
with:
34+
toolchain: "nightly"
35+
default: true
36+
- uses: actions/setup-python@v2
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
- name: Build wheels
40+
run: |
41+
python3 -m pip install maturin
42+
maturin build --release
43+
- uses: actions/upload-artifact@v4
44+
with:
45+
name: osx-${{ matrix.python-version }}-wheel
46+
path: target/wheels
5447

5548
windows-wheels:
5649
runs-on: windows-latest
5750
steps:
58-
- uses: actions/checkout@v4
59-
- uses: actions-rs/toolchain@v1
60-
with:
61-
toolchain: "nightly"
62-
default: true
63-
- uses: actions/setup-python@v4
64-
- name: Build wheels
65-
run: |
66-
python -m pip install maturin
67-
maturin build --release
68-
- uses: actions/upload-artifact@v4
69-
with:
70-
name: windows-wheels
71-
path: target/wheels
51+
- uses: actions/checkout@v1
52+
- uses: actions-rs/toolchain@v1
53+
with:
54+
toolchain: "nightly"
55+
default: true
56+
- uses: actions/setup-python@v2
57+
- name: Build wheels
58+
run: |
59+
python -m pip install maturin
60+
maturin build --release
61+
- uses: actions/upload-artifact@v4
62+
with:
63+
name: windows-wheels
64+
path: target/wheels
7265

66+
---
7367
upload-release:
7468
name: Upload Release Assets
75-
needs: [linux-upload, osx-wheels, windows-wheels]
69+
needs: [linux-wheels, osx-wheels, windows-wheels]
7670
runs-on: ubuntu-latest
7771
steps:
7872
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)