Fix caching in validation workflow

This commit is contained in:
Joseph Henry 2023-04-26 10:21:55 -07:00
parent 247e499c13
commit e805d9312e
No known key found for this signature in database
GPG key ID: C45B33FF5EBC9344

View file

@ -17,10 +17,23 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: aarch64-apple-darwin
target: x86_64-unknown-linux-gnu
override: true
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.toml', '*/Cargo.toml') }}
restore-keys: ${{ runner.os }}-cargo-
- name: validate-1m-linux
env:
CC: 'gcc'