mirror of
https://github.com/OMGeeky/confique.git
synced 2025-12-26 16:07:44 +01:00
Use proper action for Rust caching in CI
This commit is contained in:
16
.github/workflows/ci.yaml
vendored
16
.github/workflows/ci.yaml
vendored
@@ -15,20 +15,8 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Prepare cache key
|
||||
run: |
|
||||
cargo generate-lockfile
|
||||
cp Cargo.lock cache-fingerprint
|
||||
echo $RUSTFLAGS >> cache-fingerprint
|
||||
echo $(rustc -V) >> cache-fingerprint
|
||||
- name: Restore cargo cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('cache-fingerprint') }}
|
||||
- name: Restore Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
- name: Build
|
||||
run: cargo build
|
||||
- name: Run tests
|
||||
|
||||
Reference in New Issue
Block a user