|
1 | | -name: Build Windows |
| 1 | +name: PR Verification |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | 5 | branches: ["**"] |
6 | 6 | pull_request: |
7 | | - workflow_dispatch: |
8 | 7 |
|
9 | 8 | jobs: |
10 | 9 | build-windows: |
11 | | - runs-on: windows-latest |
| 10 | + # run on the matrix platform |
| 11 | + runs-on: ${{ matrix.platform }} |
| 12 | + strategy: |
| 13 | + # do not fail other matrix runs if one fails |
| 14 | + fail-fast: false |
| 15 | + # set all platforms our test should run on |
| 16 | + matrix: |
| 17 | + platform: [ubuntu-latest, windows-latest] |
12 | 18 | timeout-minutes: 30 |
| 19 | + |
13 | 20 | steps: |
14 | 21 | - name: Checkout |
15 | 22 | uses: actions/checkout@v6 |
16 | 23 |
|
17 | | - - name: Setup Node |
18 | | - uses: actions/setup-node@v6 |
19 | | - with: |
20 | | - node-version: 24 |
21 | | - cache: pnpm |
22 | | - |
23 | | - - name: Enable Corepack |
24 | | - run: corepack enable |
| 24 | + - name: Tauri dependencies |
| 25 | + if: matrix.platform == 'ubuntu-latest' |
| 26 | + run: | |
| 27 | + sudo apt-get update && |
| 28 | + sudo apt-get install -y \ |
| 29 | + libwebkit2gtk-4.1-dev \ |
| 30 | + libayatana-appindicator3-dev \ |
| 31 | + webkit2gtk-driver \ |
| 32 | + xvfb |
25 | 33 |
|
26 | | - - name: Activate pnpm |
27 | | - run: corepack prepare pnpm@10.28.2 --activate |
| 34 | + - name: install msdgedriver (Windows) |
| 35 | + if: matrix.platform == 'windows-latest' |
| 36 | + run: | |
| 37 | + cargo install --git https://github.com/chippers/msedgedriver-tool |
| 38 | + & "$HOME/.cargo/bin/msedgedriver-tool.exe" |
| 39 | + $PWD.Path >> $env:GITHUB_PATH |
28 | 40 |
|
29 | 41 | - name: Setup Rust |
30 | 42 | uses: dtolnay/rust-toolchain@stable |
|
34 | 46 | with: |
35 | 47 | workspaces: src-tauri |
36 | 48 |
|
| 49 | + - name: Setup Node |
| 50 | + uses: actions/setup-node@v6 |
| 51 | + with: |
| 52 | + node-version: 24 |
| 53 | + cache: pnpm |
| 54 | + |
| 55 | + - name: Setup pnpm |
| 56 | + uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c |
| 57 | + with: |
| 58 | + package_json_file: ./package.json |
| 59 | + cache: true |
| 60 | + cache_dependency_path: ./pnpm-lock.yaml |
| 61 | + |
37 | 62 | - name: Install dependencies |
38 | 63 | run: pnpm install --frozen-lockfile |
39 | 64 |
|
|
0 commit comments