Skip to content

Commit 17813c7

Browse files
committed
Revert "ci: use cache for rustup to accelerate CI further"
This reverts commit 99b5f40.
1 parent 67fae99 commit 17813c7

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/_build-rust.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,15 @@ jobs:
4040
steps:
4141
- name: Check out
4242
uses: actions/checkout@v3
43-
- name: Set up rustup cache
44-
uses: actions/cache@v3
45-
continue-on-error: false
46-
with:
47-
path: |
48-
~/.rustup/downloads
49-
~/.rustup/toolchains
50-
# key: ${{ runner.os }}-rustup-${{ inputs.rust-version }}-${{ inputs.rust-target }}-${{ hashFiles('**/rustup-toolchain.toml') }}
51-
key: ${{ runner.os }}-rustup-${{ inputs.rust-version }}-${{ inputs.rust-target }}
52-
# The effect of this is must smaller than the cache for Cargo. However, it
53-
# still saves a few seconds. Note that many CI runs within a week may
54-
# quickly bring you close to the 10GB limit:
55-
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#managing-caches
56-
- name: Install Rust Toolchain via Rustup
43+
- name: Install Rust
5744
uses: actions-rs/toolchain@v1
5845
with:
5946
profile: minimal
6047
toolchain: ${{ inputs.rust-version }}
6148
override: true
6249
components: clippy, rustfmt
6350
target: ${{ inputs.rust-target }}
64-
- name: Set up Cargo cache
51+
- name: Set up cargo cache
6552
uses: actions/cache@v3
6653
continue-on-error: false
6754
with:
@@ -73,6 +60,7 @@ jobs:
7360
target/
7461
# We do not have a Cargo.lock here, so I hash Cargo.toml
7562
key: ${{ runner.os }}-rust-${{ inputs.rust-version }}-cargo-${{ hashFiles('**/Cargo.toml') }}
63+
restore-keys: ${{ runner.os }}-cargo-${{ inputs.rust-version }}
7664
- run: cargo version
7765
- name: Build (library)
7866
run: cargo build --target ${{ inputs.rust-target }} --features ${{ inputs.features }}

0 commit comments

Comments
 (0)