From 622990af5f581c705b0120c3eded369cdec36eb8 Mon Sep 17 00:00:00 2001 From: g5fighter Date: Wed, 10 Jun 2026 13:33:20 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20speed=20up=20builds=20=E2=80=94=20drop=20?= =?UTF-8?q?rpm=20bundle,=20use=20Swatinem/rust-cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - bundle.targets: explicit list ["deb","appimage","app","dmg","nsis","msi"] instead of "all" — drops the rpm target. .deb already provides a proper installed experience (apt, apps menu, icon) on Debian/Ubuntu; rpm only serves Fedora/RHEL and was the slow payload-compression step. - Replace the unreliable actions/cache over src-tauri/target with Swatinem/rust-cache, which reliably caches cargo registry + compiled deps per workspace/target, avoiding full from-scratch release recompiles on every tagged build. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/publish.yml | 12 +++--------- src-tauri/tauri.conf.json | 2 +- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8a0d26c..f2a82ff 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -52,16 +52,10 @@ jobs: targets: ${{ matrix.rust_targets }} - name: Cache Rust dependencies - uses: actions/cache@v4 + uses: Swatinem/rust-cache@v2 with: - path: | - ~/.cargo/registry - ~/.cargo/git - src-tauri/target - key: ${{ runner.os }}-${{ matrix.rust_targets }}-cargo-${{ hashFiles('**/Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-${{ matrix.rust_targets }}-cargo- - ${{ runner.os }}-cargo- + workspaces: src-tauri + key: ${{ matrix.rust_targets }} # ── Linux ──────────────────────────────────────────────────────────────── - name: Install Dependencies (Linux) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 9388183..6f60d2c 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -30,7 +30,7 @@ }, "bundle": { "active": true, - "targets": "all", + "targets": ["deb", "appimage", "app", "dmg", "nsis", "msi"], "linux": { "appimage": { "bundleMediaFramework": true