Fix rust dependency caching (#1983)

* fun with rust caching

* kick

* comment out invalid yaml keys for now

* Caching should now work

* re-add/rename key directives

* bump

* bump

* bump
This commit is contained in:
Grant Limberg
2023-05-01 16:30:22 -07:00
committed by GitHub
parent f73e51e94c
commit 785a121825
2 changed files with 24 additions and 36 deletions

View File

@@ -22,17 +22,13 @@ jobs:
components: rustfmt, clippy
- name: Set up cargo cache
uses: actions/cache@v3
uses: Swatinem/rust-cache@v2
continue-on-error: false
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-
key: ${{ runner.os }}-cargo-${{ hashFiles('zeroidc//Cargo.lock') }}
shared-key: ${{ runner.os }}-cargo-
workspaces: |
zeroidc/
- name: validate-1m-linux
env:
@@ -55,3 +51,4 @@ jobs:
run: |
sudo chmod +x ./.github/workflows/report.sh
sudo ./.github/workflows/report.sh