From c91ad1e016dc9f421ca31d74e33be434165ef9d2 Mon Sep 17 00:00:00 2001 From: Sukka Date: Mon, 1 Jul 2024 14:23:21 +0800 Subject: [PATCH] ci: speed up cargo install by enabling cache (webview2) (#1283) --- .github/workflows/alpha.yml | 8 +++++++- .github/workflows/release.yml | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index b799e0e..8cc9050 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -171,9 +171,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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f9ac8e..619b17b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -161,7 +161,11 @@ jobs: workspaces: src-tauri - 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