Skip to content

Commit 9b066b6

Browse files
tgross35Amanieu
authored andcommitted
Enable cache for Cargo components of the build
1 parent 2fe1fd1 commit 9b066b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ jobs:
105105
shell: bash
106106
- run: rustup target add ${{ matrix.target }}
107107
- run: rustup component add llvm-tools-preview
108+
- uses: Swatinem/rust-cache@v2
109+
with:
110+
key: ${{ matrix.target }}
108111
- name: Download compiler-rt reference sources
109112
run: |
110113
curl -L -o code.tar.gz https://github.com/rust-lang/llvm-project/archive/rustc/18.0-2024-02-13.tar.gz
@@ -147,6 +150,7 @@ jobs:
147150
- name: Install nightly `clippy`
148151
run: |
149152
rustup set profile minimal && rustup default "nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/clippy)" && rustup component add clippy
153+
- uses: Swatinem/rust-cache@v2
150154
- run: cargo clippy -- -D clippy::all
151155

152156
success:

0 commit comments

Comments
 (0)