This commit is contained in:
parent
cfcf38e190
commit
e80c63cb04
1 changed files with 24 additions and 0 deletions
|
|
@ -14,6 +14,30 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: https://github.com/actions/checkout@v3
|
||||
|
||||
- name: Cache cargo registry
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
key: cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: cargo-registry-
|
||||
|
||||
- name: Cache cargo build
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: target
|
||||
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: cargo-build-
|
||||
|
||||
# --- Cache apt packages ---
|
||||
- name: Cache apt packages
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: /var/cache/apt/archives
|
||||
key: apt-${{ runner.os }}-${{ hashFiles('**/apt-packages.txt') }}
|
||||
restore-keys: apt-${{ runner.os }}-
|
||||
|
||||
- name: Install Rust
|
||||
uses: https://github.com/actions-rs/toolchain@v1
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue