@@ -15,28 +15,13 @@ permissions:
1515 pages : write
1616
1717jobs :
18- create-versioned-toml :
19- runs-on : ubuntu-latest
20- steps :
21- - uses : actions/checkout@v4
22- with :
23- fetch-depth : 1
24- - run : ./.github/scripts/update_version.sh
25- - uses : actions/upload-artifact@v4
26- with :
27- name : Cargo.toml
28- path : Cargo.toml
29-
3018 generate-3p-notices :
3119 runs-on : ubuntu-latest
32- needs : [create-versioned-toml]
3320 steps :
3421 - uses : actions/checkout@v4
3522 with :
3623 fetch-depth : 1
37- - uses : actions/download-artifact@v4
38- with :
39- name : Cargo.toml
24+ - run : ./.github/scripts/update_version.sh
4025 - name : Install Rust toolchain
4126 uses : dtolnay/rust-toolchain@stable
4227 - uses : taiki-e/install-action@v2
5439
5540 build :
5641 runs-on : ${{ matrix.platform.runner }}
57- needs : [create-versioned-toml, generate-3p-notices]
42+ needs : [generate-3p-notices]
5843 strategy :
5944 matrix :
6045 platform :
6752 - uses : actions/checkout@v4
6853 with :
6954 fetch-depth : 1
70- - uses : actions/download-artifact@v4
71- with :
72- name : Cargo.toml
55+ - run : ./.github/scripts/update_version.sh
7356 - uses : actions/download-artifact@v4
7457 with :
7558 name : THIRD_PARTY_NOTICES.html
@@ -110,14 +93,12 @@ jobs:
11093
11194 sdist :
11295 runs-on : ubuntu-latest
113- needs : [create-versioned-toml, generate-3p-notices]
96+ needs : [generate-3p-notices]
11497 steps :
11598 - uses : actions/checkout@v4
11699 with :
117100 fetch-depth : 1
118- - uses : actions/download-artifact@v4
119- with :
120- name : Cargo.toml
101+ - run : ./.github/scripts/update_version.sh
121102 - uses : actions/download-artifact@v4
122103 with :
123104 name : THIRD_PARTY_NOTICES.html
@@ -135,7 +116,7 @@ jobs:
135116 release :
136117 name : Release
137118 runs-on : ubuntu-latest
138- needs : [create-versioned-toml, build, test-abi3, sdist, generate-3p-notices]
119+ needs : [build, test-abi3, sdist, generate-3p-notices]
139120 permissions :
140121 # Use to sign the release artifacts
141122 id-token : write
@@ -148,9 +129,7 @@ jobs:
148129 - uses : actions/checkout@v4
149130 with :
150131 fetch-depth : 1
151- - uses : actions/download-artifact@v4
152- with :
153- name : Cargo.toml
132+ - run : ./.github/scripts/update_version.sh
154133 - uses : actions/download-artifact@v4
155134 with :
156135 name : THIRD_PARTY_NOTICES.html
0 commit comments