Skip to content

Commit d177dc2

Browse files
authored
build: when generate 3p notice, use Cargo.toml with filled version (#970)
* build: when generate 3p notice, use `Cargo.toml` with filled version * build: switch to binstall cargo-about
1 parent 1500a7f commit d177dc2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@ jobs:
2626

2727
generate-3p-notices:
2828
runs-on: ubuntu-latest
29+
needs: [create-versioned-toml]
2930
steps:
30-
- uses: actions/checkout@v4
31-
- name: Rust Cache
32-
uses: Swatinem/rust-cache@v2
3331
- name: Install Rust toolchain
3432
uses: dtolnay/rust-toolchain@stable
33+
- uses: taiki-e/install-action@v2
34+
with:
35+
tool: cargo-binstall
3536
- name: Install cargo-about
36-
run: cargo install --locked cargo-about
37+
run: cargo binstall -y cargo-about
38+
- uses: actions/checkout@v4
39+
- uses: actions/download-artifact@v4
40+
with:
41+
name: Cargo.toml
3742
- name: Generate THIRD_PARTY_NOTICES.html
3843
run: cargo about generate -o THIRD_PARTY_NOTICES.html about.hbs
3944
- name: Upload THIRD_PARTY_NOTICES.html artifact

0 commit comments

Comments
 (0)