Skip to content

Commit

Permalink
Add caching for crates: trunk and tauri-cli (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrzlgnm authored Mar 3, 2024
1 parent 0782ae4 commit 14dce34
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/tauri-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,16 @@ jobs:
- name: install frontend dependencies
run: |
rustup target add wasm32-unknown-unknown
cargo install trunk --locked
cargo install tauri-cli --locked
- uses: taiki-e/cache-cargo-install-action@v1
with:
tool: trunk
locked: true

- uses: taiki-e/cache-cargo-install-action@v1
with:
tool: tauri-cli
locked: true

- uses: tauri-apps/tauri-action@v0
env:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/tauri-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,16 @@ jobs:
- name: install frontend dependencies
run: |
rustup target add wasm32-unknown-unknown
cargo install trunk --locked
cargo install tauri-cli --locked
- uses: taiki-e/cache-cargo-install-action@v1
with:
tool: trunk
locked: true

- uses: taiki-e/cache-cargo-install-action@v1
with:
tool: tauri-cli
locked: true

- uses: tauri-apps/tauri-action@v0
env:
Expand Down

0 comments on commit 14dce34

Please sign in to comment.