Fix toolchain caching: part 2

This commit is contained in:
lcdr
2020-07-10 18:21:45 +02:00
parent 4668e2aa62
commit 64e53b1283
2 changed files with 9 additions and 15 deletions
+3 -6
View File
@@ -15,12 +15,9 @@ jobs:
with:
path: |
~/.rustup/toolchains
key: toolchain-test-${{ hashFiles('rust-toolchain') }}
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
~/.rustup/update-hashes
~/.rustup/settings.toml
key: toolchain-test2-${{ hashFiles('rust-toolchain') }}
- name: Cache dependencies
uses: actions/cache@v2
+6 -9
View File
@@ -14,13 +14,10 @@ jobs:
uses: actions/cache@v2
with:
path: |
~/.rustup
key: toolchain-${{ hashFiles('rust-toolchain') }}
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
~/.rustup/toolchains
~/.rustup/update-hashes
~/.rustup/settings.toml
key: toolchain-test2-${{ hashFiles('rust-toolchain') }}
- name: Cache dependencies
uses: actions/cache@v2
@@ -36,9 +33,9 @@ jobs:
path: |
target/.rustc_info.json
target/debug
key: target-${{ github.run_number }}
key: target-debug-${{ github.run_number }}
restore-keys: |
target-
target-debug-
- name: Cache docs
uses: actions/cache@v2