Skip to content

Commit 21507c4

Browse files
committed
fix: rename workflow from 'Build Windows' to 'PR Verification'
1 parent 5efc70a commit 21507c4

1 file changed

Lines changed: 38 additions & 13 deletions

File tree

.github/workflows/build-windows.yml

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,42 @@
1-
name: Build Windows
1+
name: PR Verification
22

33
on:
44
push:
55
branches: ["**"]
66
pull_request:
7-
workflow_dispatch:
87

98
jobs:
109
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]
1218
timeout-minutes: 30
19+
1320
steps:
1421
- name: Checkout
1522
uses: actions/checkout@v6
1623

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
2533
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
2840
2941
- name: Setup Rust
3042
uses: dtolnay/rust-toolchain@stable
@@ -34,6 +46,19 @@ jobs:
3446
with:
3547
workspaces: src-tauri
3648

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+
3762
- name: Install dependencies
3863
run: pnpm install --frozen-lockfile
3964

0 commit comments

Comments
 (0)