Skip to content

Commit

Permalink
fix (hopefully) Rust target caching in action
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemis21 committed Feb 13, 2024
1 parent 6cb0656 commit 0b73cb5
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,12 @@ jobs:
with:
cache: 'yarn'

- name: Restore cached target dir
uses: actions/cache/restore@v4
with:
path: target
key: beatdrop-main-target
- name: Cache rust target dir
uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build --release --locked

- name: Cache target dir
uses: actions/cache/save@v4
with:
path: target
key: beatdrop-main-target

- name: Create release
run: gh release create commit-${{ github.sha }} target/release/beatdrop
env:
Expand Down

0 comments on commit 0b73cb5

Please sign in to comment.