Skip to content

Commit f8824d1

Browse files
committed
Removing toolchain cache
1 parent 521bd61 commit f8824d1

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/rust.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,13 @@ jobs:
3232
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
3333
restore-keys: |
3434
${{ runner.os }}-cargo-
35-
- name: Cache Rust toolchain
35+
- name: Cache cargo bin tools
3636
uses: actions/cache@v3
3737
with:
38-
path: |
39-
~/.rustup
40-
~/.cargo/bin
41-
key: ${{ runner.os }}-rust-nightly-${{ hashFiles('rust-toolchain.toml') }}
38+
path: ~/.cargo/bin
39+
key: ${{ runner.os }}-cargo-bin-${{ hashFiles('rust-toolchain.toml') }}
4240
restore-keys: |
43-
${{ runner.os }}-rust-nightly-
41+
${{ runner.os }}-cargo-bin-
4442
- name: Install Rust nightly
4543
uses: dtolnay/rust-toolchain@nightly
4644
with:
@@ -85,18 +83,16 @@ jobs:
8583
key: ${{ runner.os }}-${{ matrix.target }}-rust-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}
8684
restore-keys: |
8785
${{ runner.os }}-${{ matrix.target }}-rust-
88-
- name: Cache Rust toolchain
86+
- name: Cache cargo bin tools
8987
uses: actions/cache@v3
9088
with:
91-
path: |
92-
~/.rustup
93-
~/.cargo/bin
94-
key: ${{ runner.os }}-rust-nightly-${{ hashFiles('rust-toolchain.toml') }}
89+
path: ~/.cargo/bin
90+
key: ${{ runner.os }}-cargo-bin-${{ hashFiles('rust-toolchain.toml') }}
9591
restore-keys: |
96-
${{ runner.os }}-rust-nightly-
92+
${{ runner.os }}-cargo-bin-
9793
- name: Install cargo-nextest
9894
uses: taiki-e/install-action@v2
9995
with:
10096
tool: cargo-nextest
10197
- name: Run Tests
102-
run: cargo nextest run --target ${{ matrix.target }} --all-targets --all-features -E "not kind(bench)"
98+
run: cargo nextest run --target ${{ matrix.target }} --all-targets --all-features -E "not kind(bench)"

0 commit comments

Comments
 (0)