adopt cache settings from

https://ectobit.com/blog/speed-up-github-actions-rust-pipelines/
This commit is contained in:
GroovieGermanikus 2023-09-06 18:00:46 +02:00
parent 2f4ed2ed16
commit 190d3c12da
1 changed files with 7 additions and 3 deletions

View File

@ -42,9 +42,13 @@ jobs:
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}}
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: cargo fmt
uses: actions-rs/cargo@v1