Skip to content

Commit 33c36ec

Browse files
committed
ci: add build job to catch compilation errors before merge
1 parent c47e15c commit 33c36ec

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,32 @@ env:
1111
RUSTFLAGS: "-D warnings"
1212

1313
jobs:
14+
# ── Build verification (all 3 platforms) ───────────────────────────────────
15+
build:
16+
name: Build / ${{ matrix.os }}
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: [ubuntu-latest, macos-latest, windows-latest]
22+
steps:
23+
- uses: actions/checkout@v6
24+
- uses: dtolnay/rust-toolchain@stable
25+
- uses: Swatinem/rust-cache@v2
26+
with:
27+
key: build-${{ matrix.os }}
28+
- name: Install Tauri system deps (Linux)
29+
if: runner.os == 'Linux'
30+
run: |
31+
sudo apt-get update
32+
sudo apt-get install -y \
33+
libwebkit2gtk-4.1-dev \
34+
libgtk-3-dev \
35+
libayatana-appindicator3-dev \
36+
librsvg2-dev \
37+
patchelf
38+
- run: cargo build --workspace --lib
39+
1440
# ── Rust library crates (all 3 platforms) ──────────────────────────────────
1541
check:
1642
name: Check / ${{ matrix.os }}

0 commit comments

Comments
 (0)