From 83409cef0d12b0c8fa79181967985d03a3e8ed92 Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Thu, 16 Jul 2026 11:02:23 -0400 Subject: [PATCH] chore(ci): add rust and npm caching to speed up builds --- .github/workflows/release.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08a94a2..2400eaf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,8 +10,14 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 - with: { node-version: 20 } + with: + node-version: 20 + cache: 'npm' + cache-dependency-path: 'web/package-lock.json' - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + with: + workspaces: 'web/src-tauri' - name: Install system deps run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libappindicator3-dev librsvg2-dev patchelf rpm - name: Build frontend @@ -34,7 +40,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 - with: { node-version: 20 } + with: + node-version: 20 + cache: 'npm' + cache-dependency-path: 'web/package-lock.json' - name: Install Rust run: | curl.exe -sLO https://win.rustup.rs/x86_64/rustup-init.exe @@ -42,6 +51,9 @@ jobs: set PATH=%USERPROFILE%\.cargo\bin;%PATH% rustc --version shell: cmd + - uses: Swatinem/rust-cache@v2 + with: + workspaces: 'web/src-tauri' - name: Build frontend run: cd web && npm ci && npm run build shell: cmd