mirror of
https://github.com/google/alioth.git
synced 2024-10-23 06:57:24 +00:00
ci: add action cache
to reduce workflow time
Signed-off-by: Changyuan Lyu <changyuanl@google.com>
This commit is contained in:
parent
61eb8200f8
commit
645879bfac
1 changed files with 9 additions and 0 deletions
9
.github/workflows/rust.yml
vendored
9
.github/workflows/rust.yml
vendored
|
@ -20,6 +20,15 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
- name: Format
|
||||
|
|
Loading…
Reference in a new issue