24
24
name : Cargo.toml
25
25
path : Cargo.toml
26
26
27
+ generate-3p-notices :
28
+ runs-on : ubuntu-latest
29
+ steps :
30
+ - uses : actions/checkout@v4
31
+ - name : Rust Cache
32
+ uses : Swatinem/rust-cache@v2
33
+ - name : Install Rust toolchain
34
+ uses : dtolnay/rust-toolchain@stable
35
+ - name : Install cargo-about
36
+ run : cargo install --locked cargo-about
37
+ - name : Generate THIRD_PARTY_NOTICES.html
38
+ run : cargo about generate -o THIRD_PARTY_NOTICES.html about.hbs
39
+ - name : Upload THIRD_PARTY_NOTICES.html artifact
40
+ uses : actions/upload-artifact@v4
41
+ with :
42
+ name : THIRD_PARTY_NOTICES.html
43
+ path : THIRD_PARTY_NOTICES.html
44
+
27
45
build :
28
46
runs-on : ${{ matrix.platform.runner }}
29
- needs : [create-versioned-toml]
47
+ needs : [create-versioned-toml, generate-3p-notices ]
30
48
strategy :
31
49
matrix :
32
50
platform :
40
58
- uses : actions/download-artifact@v4
41
59
with :
42
60
name : Cargo.toml
61
+ - uses : actions/download-artifact@v4
62
+ with :
63
+ name : THIRD_PARTY_NOTICES.html
43
64
- uses : actions/setup-python@v5
44
65
with :
45
66
python-version : 3.13
@@ -77,12 +98,15 @@ jobs:
77
98
78
99
sdist :
79
100
runs-on : ubuntu-latest
80
- needs : [create-versioned-toml]
101
+ needs : [create-versioned-toml, generate-3p-notices ]
81
102
steps :
82
103
- uses : actions/checkout@v4
83
104
- uses : actions/download-artifact@v4
84
105
with :
85
106
name : Cargo.toml
107
+ - uses : actions/download-artifact@v4
108
+ with :
109
+ name : THIRD_PARTY_NOTICES.html
86
110
- name : Build sdist
87
111
uses : PyO3/maturin-action@v1
88
112
with :
@@ -94,28 +118,6 @@ jobs:
94
118
name : wheels-sdist
95
119
path : dist
96
120
97
- generate-3p-notices :
98
- runs-on : ubuntu-latest
99
- needs : [create-versioned-toml]
100
- steps :
101
- - uses : actions/checkout@v4
102
- - uses : actions/download-artifact@v4
103
- with :
104
- name : Cargo.toml
105
- - name : Rust Cache
106
- uses : Swatinem/rust-cache@v2
107
- - name : Install Rust toolchain
108
- uses : dtolnay/rust-toolchain@stable
109
- - name : Install cargo-about
110
- run : cargo install --locked cargo-about
111
- - name : Generate THIRD_PARTY_NOTICES.html
112
- run : cargo about generate -o THIRD_PARTY_NOTICES.html about.hbs
113
- - name : Upload THIRD_PARTY_NOTICES.html artifact
114
- uses : actions/upload-artifact@v4
115
- with :
116
- name : THIRD_PARTY_NOTICES.html
117
- path : THIRD_PARTY_NOTICES.html
118
-
119
121
release :
120
122
name : Release
121
123
runs-on : ubuntu-latest
0 commit comments