1+ name : ' test-on-pr'
2+
3+ on :
4+ workflow_dispatch :
5+ pull_request :
6+ types : [ opened, reopened, synchronize ]
7+
8+
9+ jobs :
10+ test-tauri :
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ include :
15+ # - platform: 'macos-latest' # for Arm based macs (M1 and above).
16+ # args: '--target aarch64-apple-darwin'
17+ # - platform: 'macos-latest' # for Intel based macs.
18+ # args: '--target x86_64-apple-darwin'
19+ - platform : ' ubuntu-22.04'
20+ args : ' '
21+ - platform : ' windows-latest'
22+ args : ' '
23+
24+ runs-on : ${{ matrix.platform }}
25+ steps :
26+ - uses : actions/checkout@v4
27+
28+ - name : Node.js setup (25.x)
29+ uses : actions/setup-node@v4
30+ with :
31+ token : ${{ env.GITHUB_TOKEN }}
32+ node-version : 25.x
33+
34+ - name : install Rust stable
35+ uses : dtolnay/rust-toolchain@stable
36+ with :
37+ toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
38+ targets : ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}\
39+
40+ - name : Install dependencies (ubuntu only)
41+ if : matrix.platform == 'ubuntu-22.04'
42+ run : |
43+ sudo apt-get update
44+ sudo apt-get install -y pkg-config libudev-dev javascriptcoregtk-4.1 libsoup-3.0 libwebkit2gtk-4.1-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev webkit2gtk-4.0 patchelf libsoup2.4-dev libappindicator3-dev
45+ npm install -g pnpm
46+ npm install -g typescript
47+
48+ - name : install dependencies (windows only)
49+ if : matrix.platform == 'windows-latest'
50+ run : |
51+ npm install -g typescript
52+ npm install -g pnpm
53+
54+ - name : install dependencies (macos only)
55+ if : matrix.platform == 'macos-latest'
56+ run : |
57+ brew install pnpm
58+
59+ - name : Install frontend dependencies (PNPM)
60+ run : pnpm install --no-frozen-lockfile
61+
62+ - uses : tauri-apps/tauri-action@v0.6.1
63+ id : tauri_build
64+ env :
65+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66+ TAURI_PRIVATE_KEY : ${{ secrets.TAURI_PRIVATE_KEY }}
67+ TAURI_KEY_PASSWORD : ${{ secrets.TAURI_KEY_PASSWORD }}
68+ with :
69+ args : ${{ matrix.args }}
0 commit comments