Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Commit 2ed38f5

Browse files
committed
Updated build test workflow
1 parent a458ba6 commit 2ed38f5

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

.github/workflows/build-test.yml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
name: CI - Fast Tauri Build Test
1+
name: CI - Build Test
22

33
on:
44
push:
5+
branches: [main]
56
paths-ignore:
67
- .github/workflows/build-test.yml
78
- .github/ISSUE_TEMPLATE/**
89
- README.md
910
- LICENSE
10-
branches:
11-
- main
1211

1312
jobs:
1413
build-test:
@@ -18,28 +17,19 @@ jobs:
1817
- name: Checkout code
1918
uses: actions/checkout@v3
2019

21-
- name: Set up Node.js
20+
- name: Set up Node.js with cache
2221
uses: actions/setup-node@v3
2322
with:
2423
node-version: "18"
25-
26-
- name: Cache global npm packages
27-
uses: actions/cache@v3
28-
with:
29-
path: ~/.npm
30-
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
24+
cache: "npm"
3125

3226
- name: Set up Rust
3327
uses: dtolnay/rust-toolchain@stable
3428

3529
- name: Cache Rust dependencies
36-
uses: actions/cache@v3
30+
uses: swatinem/rust-cache@v2
3731
with:
38-
path: |
39-
~/.cargo/registry
40-
~/.cargo/git
41-
target
42-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
32+
workspaces: "./src-tauri -> target"
4333

4434
- name: Install Linux system dependencies
4535
run: |
@@ -50,11 +40,11 @@ jobs:
5040
librsvg2-dev \
5141
libwebkit2gtk-4.1-dev
5242
53-
- name: Install Tauri CLI (fast via npm)
54-
run: npm install -g @tauri-apps/cli
55-
5643
- name: Install project dependencies
57-
run: npm install
44+
run: npm ci
45+
46+
- name: Install Tauri CLI via Cargo
47+
run: cargo install tauri-cli --version "^2.0.0" --locked
5848

5949
- name: Test build (dev mode)
6050
run: cargo tauri dev --no-default-features

0 commit comments

Comments
 (0)