Skip to content

Commit

Permalink
Use outdated cache as backup in GHA (#465)
Browse files Browse the repository at this point in the history
* Use outdated cache as backup in GHA

* Don't search for key in restore-keys
  • Loading branch information
future-highway authored Mar 21, 2023
1 parent 1290ec8 commit cf8e2a3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/001-tester-ubuntu-make-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ jobs:
~/.cargo/git/db/
target/
key: 000-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
000-${{ runner.os }}-cargo-
- name: Install protoc-gen-doc in [ubuntu:latest]
run: |
wget https://github.com/pseudomuto/protoc-gen-doc/releases/download/v1.5.1/protoc-gen-doc_1.5.1_linux_amd64.tar.gz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ jobs:
~/.cargo/git/db/
target/
key: 100-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
100-${{ runner.os }}-cargo-
- name: Cargo Test [make pki config test]
# This should remain the only command we execute as this matches the title of the file.
# The goal is for this to be easy to find from the GitHub dashboard.
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/206-deny-check-aurae-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ jobs:
~/.cargo/git/db/
target/
key: 200-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
200-${{ runner.os }}-cargo-
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check ${{ matrix.checks }}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
~/.cargo/git/db/
target/
key: 200-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
200-${{ runner.os }}-cargo-
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ jobs:
~/.cargo/git/db/
target/
key: 200-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
200-${{ runner.os }}-cargo-
- name: Docs (make docs docs-lint)
run: |
make docs docs-lint

0 comments on commit cf8e2a3

Please sign in to comment.