ci: speed up cargo install by enabling cache (#1279)

This commit is contained in:
Sukka 2024-06-30 17:21:55 +08:00 committed by GitHub
parent 901a983150
commit babcb00621
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 2 deletions

View File

@ -46,9 +46,15 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
cache-all-crates: true
cache-on-failure: true
- name: Install Tauri CLI
run: cargo install --git https://github.com/tauri-apps/tauri --branch 1.x tauri-cli
uses: baptiste0928/cargo-install@v3
with:
crate: tauri-cli
git: https://github.com/tauri-apps/tauri
branch: 1.x # `branch` and `commit` are also supported
- name: Install Node
uses: actions/setup-node@v4

View File

@ -39,9 +39,14 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
cache-all-crates: true
- name: Install Tauri CLI
run: cargo install --git https://github.com/tauri-apps/tauri --branch 1.x tauri-cli
uses: baptiste0928/cargo-install@v3
with:
crate: tauri-cli
git: https://github.com/tauri-apps/tauri
branch: 1.x # `branch` and `commit` are also supported
- name: Install Node
uses: actions/setup-node@v4