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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 36 deletions

View File

@ -19,17 +19,14 @@ 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: make
run: make
- name: selftest
@ -54,17 +51,14 @@ jobs:
override: true
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: make
run: make
- name: selftest
@ -89,17 +83,14 @@ jobs:
override: true
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: setup msbuild
uses: microsoft/setup-msbuild@v1.1.3
- name: msbuild

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