Cache desktop release dependencies

This commit is contained in:
Mohamed Boudra
2026-03-10 15:06:09 +07:00
parent a0266e29e3
commit d32c196fd5

View File

@@ -77,6 +77,7 @@ jobs:
with: with:
node-version: "22" node-version: "22"
cache: "npm" cache: "npm"
cache-dependency-path: package-lock.json
registry-url: "https://npm.pkg.github.com" registry-url: "https://npm.pkg.github.com"
scope: "@boudra" scope: "@boudra"
@@ -85,6 +86,14 @@ jobs:
with: with:
targets: ${{ matrix.rust_target }} 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 - name: Install JS dependencies
run: npm ci run: npm ci
env: env:
@@ -241,12 +250,21 @@ jobs:
with: with:
node-version: "22" node-version: "22"
cache: "npm" cache: "npm"
cache-dependency-path: package-lock.json
registry-url: "https://npm.pkg.github.com" registry-url: "https://npm.pkg.github.com"
scope: "@boudra" scope: "@boudra"
- name: Install Rust stable - name: Install Rust stable
uses: dtolnay/rust-toolchain@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 - name: Install JS dependencies
run: npm ci run: npm ci
env: env:
@@ -364,12 +382,21 @@ jobs:
with: with:
node-version: "22" node-version: "22"
cache: "npm" cache: "npm"
cache-dependency-path: package-lock.json
registry-url: "https://npm.pkg.github.com" registry-url: "https://npm.pkg.github.com"
scope: "@boudra" scope: "@boudra"
- name: Install Rust stable - name: Install Rust stable
uses: dtolnay/rust-toolchain@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 - name: Install JS dependencies
run: npm ci run: npm ci
env: env: