From cad28221b0117014f18e83f8e08ccb4faf5644c3 Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 14 Jul 2025 13:54:15 -0500 Subject: [PATCH] ci: use cache-cargo-install-action to cache cargo install invocations --- .github/workflows/ci.yml | 4 +++- .github/workflows/security-audit.yml | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e24536f..2bcac25 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,9 @@ jobs: uses: dtolnay/rust-toolchain@stable - name: Install cargo-audit - run: cargo install cargo-audit + uses: taiki-e/cache-cargo-install-action@v2 + with: + tool: cargo-audit - name: Run security audit run: cargo audit --file src-tauri/Cargo.lock diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml index af432e4..5a938a4 100644 --- a/.github/workflows/security-audit.yml +++ b/.github/workflows/security-audit.yml @@ -20,13 +20,17 @@ jobs: uses: dtolnay/rust-toolchain@stable - name: Install cargo-audit - run: cargo install cargo-audit + uses: taiki-e/cache-cargo-install-action@v2 + with: + tool: cargo-audit - name: Run cargo audit run: cargo audit --file src-tauri/Cargo.lock - name: Install cargo-deny - run: cargo install cargo-deny + uses: taiki-e/cache-cargo-install-action@v2 + with: + tool: cargo-deny - name: Run cargo deny run: cargo deny --manifest-path src-tauri/Cargo.toml check