ci: run rust tests in parallel with installer build and speed up release compile
This commit is contained in:
1 parent
d2dd2f9c27
commit
ae1612547a
2 files changed
+25
-4
No files matched your search
@@ -32,6 +32,31 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
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:
|
windows-installer:
|
||||||
name: Windows installer
|
name: Windows installer
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
@@ -81,9 +106,6 @@ jobs:
|
|||||||
- name: Install frontend dependencies
|
- name: Install frontend dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Run Rust tests
|
|
||||||
run: cargo test
|
|
||||||
|
|
||||||
- name: Build Windows desktop installers
|
- name: Build Windows desktop installers
|
||||||
run: pnpm run desktop:build
|
run: pnpm run desktop:build
|
||||||
|
|
||||||
|
|||||||
@@ -16,5 +16,4 @@ tauri-plugin-global-shortcut = "2"
|
|||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = "thin"
|
lto = "thin"
|
||||||
codegen-units = 1
|
|
||||||
strip = true
|
strip = true
|
||||||
Reference in new issue
Block a user