From ae1612547aa18ae8c7c2eca974aa28a9bd121cd6 Mon Sep 17 00:00:00 2001 From: Alvin-Zilverstand <524715@vistacollege.nl> Date: Mon, 14 Sep 2026 14:14:47 +0200 Subject: [PATCH] ci: run rust tests in parallel with installer build and speed up release compile --- .github/workflows/release.yml | 28 +++++++++++++++++++++++++--- src-tauri/Cargo.toml | 1 - 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c33ce58..4ccb352 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,31 @@ concurrency: cancel-in-progress: true jobs: + tests: + name: Rust tests + runs-on: windows-latest + + defaults: + run: + shell: pwsh + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Rust + uses: dtolnay/rust-toolchain@stable + + - name: Cache Rust dependencies + uses: Swatinem/rust-cache@v2 + with: + workspaces: | + . + src-tauri + + - name: Run Rust tests + run: cargo test + windows-installer: name: Windows installer runs-on: windows-latest @@ -81,9 +106,6 @@ jobs: - name: Install frontend dependencies run: pnpm install --frozen-lockfile - - name: Run Rust tests - run: cargo test - - name: Build Windows desktop installers run: pnpm run desktop:build diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index c275c12..8394e65 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -16,5 +16,4 @@ tauri-plugin-global-shortcut = "2" [profile.release] lto = "thin" -codegen-units = 1 strip = true