use smarter cache
All checks were successful
CI/CD Pipeline / deploy-main (push) Successful in 25m59s

This commit is contained in:
philipp 2024-05-26 13:07:21 +02:00
parent 59043e1376
commit 569cb08a6d

View File

@ -16,7 +16,7 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set up cargo cache laws - name: Set up cache laws
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: | path: |
@ -24,17 +24,8 @@ jobs:
key: risp-cache-${{ hashFiles('**/laws/*') }} key: risp-cache-${{ hashFiles('**/laws/*') }}
restore-keys: risp-cache- restore-keys: risp-cache-
- name: Set up cargo cache rust - name: Cache Cargo dependencies
uses: actions/cache@v3 uses: Swatinem/rust-cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-release-
- name: Build - name: Build
run: | run: |