Skip to content

Commit 5dcc92d

Browse files
authored
build(ci): use binstall for cargo-about also for CI (#971)
1 parent d177dc2 commit 5dcc92d

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/_test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,13 @@ jobs:
6868
runs-on: ubuntu-latest
6969
steps:
7070
- uses: actions/checkout@v4
71-
- name: Rust Cache
72-
uses: Swatinem/rust-cache@v2
7371
- name: Install Rust toolchain
7472
uses: dtolnay/rust-toolchain@stable
73+
- uses: taiki-e/install-action@v2
74+
with:
75+
tool: cargo-binstall
7576
- name: Install cargo-about
76-
run: cargo install --locked cargo-about
77+
run: cargo binstall -y cargo-about
7778
- name: Validate third-party notices (dry-run)
7879
shell: bash
7980
run: |

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ jobs:
2828
runs-on: ubuntu-latest
2929
needs: [create-versioned-toml]
3030
steps:
31+
- uses: actions/checkout@v4
32+
- uses: actions/download-artifact@v4
33+
with:
34+
name: Cargo.toml
3135
- name: Install Rust toolchain
3236
uses: dtolnay/rust-toolchain@stable
3337
- uses: taiki-e/install-action@v2
3438
with:
3539
tool: cargo-binstall
3640
- name: Install cargo-about
3741
run: cargo binstall -y cargo-about
38-
- uses: actions/checkout@v4
39-
- uses: actions/download-artifact@v4
40-
with:
41-
name: Cargo.toml
4242
- name: Generate THIRD_PARTY_NOTICES.html
4343
run: cargo about generate -o THIRD_PARTY_NOTICES.html about.hbs
4444
- name: Upload THIRD_PARTY_NOTICES.html artifact

0 commit comments

Comments
 (0)