Skip to content

Commit

Permalink
ok buddy
Browse files Browse the repository at this point in the history
  • Loading branch information
onlycs committed Jan 7, 2025
1 parent 2114435 commit 8130f8e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jobs:
/home/runner/work/attendance/attendance/src-api/target
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-rust-cache
key: ${{ runner.os }}-rust-cache-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-rust-cache

- name: Set up Rust
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -89,11 +90,11 @@ jobs:
--allow-unauthenticated
- name: Save target cache
if: always() && steps.cache-restore.outputs.cache-hit != 'true'
if: always() && (steps.cache-restore.outputs.cache-hit != 'true' || steps.cache-restore.outputs.cache-primary-key == '${{ runner.os }}-rust-cache')
uses: actions/cache/save@v4
with:
path: |
/home/runner/work/attendance/attendance/src-api/target
~/.cargo/registry
~/.cargo/git
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
key: ${{ runner.os }}-rust-cache-${{ hashFiles('**/Cargo.lock') }}

0 comments on commit 8130f8e

Please sign in to comment.