From 14dce346a044657ff2060fcd21959826d6bfb32f Mon Sep 17 00:00:00 2001 From: hrzlgnm Date: Mon, 4 Mar 2024 00:39:54 +0100 Subject: [PATCH] Add caching for crates: trunk and tauri-cli (#11) --- .github/workflows/tauri-build.yml | 12 ++++++++++-- .github/workflows/tauri-publish.yml | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tauri-build.yml b/.github/workflows/tauri-build.yml index 8e10aa8..8467cfd 100644 --- a/.github/workflows/tauri-build.yml +++ b/.github/workflows/tauri-build.yml @@ -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: diff --git a/.github/workflows/tauri-publish.yml b/.github/workflows/tauri-publish.yml index 8a4a553..4b44719 100644 --- a/.github/workflows/tauri-publish.yml +++ b/.github/workflows/tauri-publish.yml @@ -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: