mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 13:03:45 +02:00
Test: alternative cargo cache method
This commit is contained in:
parent
e98fcd1c5a
commit
b6add039e9
1 changed files with 9 additions and 23 deletions
32
.github/workflows/validate.yml
vendored
32
.github/workflows/validate.yml
vendored
|
@ -9,30 +9,16 @@ jobs:
|
||||||
git config --global core.autocrlf input
|
git config --global core.autocrlf input
|
||||||
|
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install Rust
|
- run: |
|
||||||
uses: actions-rs/toolchain@v1
|
rustup set auto-self-update disable
|
||||||
with:
|
rustup toolchain install stable --profile minimal
|
||||||
toolchain: stable
|
- uses: Swatinem/rust-cache@v2
|
||||||
target: x86_64-unknown-linux-gnu
|
with:
|
||||||
override: true
|
workspaces: zeroidc -> target
|
||||||
components: rustfmt, clippy
|
|
||||||
|
|
||||||
- name: Set up cargo cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
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-
|
|
||||||
|
|
||||||
- name: validate-1m-linux
|
- name: validate-1m-linux
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Add table
Reference in a new issue