From d32c196fd5367472f719db9cd0290cf0f498f23e Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Tue, 10 Mar 2026 15:06:09 +0700 Subject: [PATCH] Cache desktop release dependencies --- .github/workflows/desktop-release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.yml index 822a773ec..f492efc37 100644 --- a/.github/workflows/desktop-release.yml +++ b/.github/workflows/desktop-release.yml @@ -77,6 +77,7 @@ jobs: with: node-version: "22" cache: "npm" + cache-dependency-path: package-lock.json registry-url: "https://npm.pkg.github.com" scope: "@boudra" @@ -85,6 +86,14 @@ jobs: with: targets: ${{ matrix.rust_target }} + - name: Restore Rust cache + uses: Swatinem/rust-cache@v2 + with: + shared-key: desktop-release-macos-${{ matrix.rust_target }} + workspaces: | + . + packages/desktop/src-tauri -> target + - name: Install JS dependencies run: npm ci env: @@ -241,12 +250,21 @@ jobs: with: node-version: "22" cache: "npm" + cache-dependency-path: package-lock.json registry-url: "https://npm.pkg.github.com" scope: "@boudra" - name: Install Rust stable uses: dtolnay/rust-toolchain@stable + - name: Restore Rust cache + uses: Swatinem/rust-cache@v2 + with: + shared-key: desktop-release-linux + workspaces: | + . + packages/desktop/src-tauri -> target + - name: Install JS dependencies run: npm ci env: @@ -364,12 +382,21 @@ jobs: with: node-version: "22" cache: "npm" + cache-dependency-path: package-lock.json registry-url: "https://npm.pkg.github.com" scope: "@boudra" - name: Install Rust stable uses: dtolnay/rust-toolchain@stable + - name: Restore Rust cache + uses: Swatinem/rust-cache@v2 + with: + shared-key: desktop-release-windows + workspaces: | + . + packages/desktop/src-tauri -> target + - name: Install JS dependencies run: npm ci env: