From 1e19f226d48bdef27ef7463bc1184b360dd7a6bb Mon Sep 17 00:00:00 2001 From: lucaronin Date: Mon, 23 Feb 2026 14:32:29 +0100 Subject: [PATCH] =?UTF-8?q?ci:=20optimize=20self-hosted=20build=20?= =?UTF-8?q?=E2=80=94=20incremental=20Rust,=20drop=20Swatinem=20cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e204ba2..8ceedee9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,10 +60,8 @@ jobs: with: targets: ${{ matrix.target }} - - name: Rust cache - uses: Swatinem/rust-cache@v2 - with: - workspaces: src-tauri + # Self-hosted runner: cargo registry + target dir persist on disk between runs. + # No need for Swatinem/rust-cache — incremental builds kick in automatically. - name: Install frontend dependencies run: pnpm install --frozen-lockfile @@ -78,6 +76,8 @@ jobs: env: TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} TAURI_SIGNING_PRIVATE_KEY_PASSWORD: "" + # Incremental compilation — reuses previous build artifacts on self-hosted runner + CARGO_INCREMENTAL: "1" run: | pnpm tauri build --target ${{ matrix.target }}