cache more...

This commit is contained in:
GroovieGermanikus 2023-09-07 12:51:46 +02:00
parent bd2c629fd3
commit 6a75c49045
1 changed files with 12 additions and 13 deletions

View File

@ -30,6 +30,18 @@ jobs:
sudo apt-get update
sudo apt-get install -y libudev-dev libssl-dev libsasl2-dev libzstd-dev
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/
~/.cargo/git/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo-
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_STABLE }}
@ -37,19 +49,6 @@ jobs:
profile: minimal
components: rustfmt, clippy
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo-
- name: cargo fmt
uses: actions-rs/cargo@v1
with: