Skip to content

Commit 776f04a

Browse files
committed
just use actions/cache@v2 for caching everything, including test-target dir
1 parent 2a29775 commit 776f04a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/rust.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,19 @@ jobs:
3535
profile: minimal
3636
components: llvm-tools-preview
3737

38-
- name: Cache cargo binaries
38+
- name: Cache cargo files
3939
uses: actions/cache@v2
4040
with:
4141
path: |
4242
~/.cargo/bin
4343
~/.cargo/.crates.toml
4444
~/.cargo/.crates2.json
45-
key: ${{ runner.os }}-cargo-binaries-1
46-
47-
- name: Cache Rust Dependencies
48-
uses: Swatinem/rust-cache@v1
45+
~/.cargo/registry/index
46+
~/.cargo/registry/cache
47+
~/.cargo/git/db
48+
./target
49+
./test-target
50+
key: ${{ runner.os }}-cargo-files-0
4951

5052
- name: Install Binutils
5153
run: cargo install cargo-binutils || cargo install cargo-binutils --force

0 commit comments

Comments
 (0)