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