-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (24 loc) · 760 Bytes
/
Copy pathci.yml
File metadata and controls
27 lines (24 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: CI
on:
push:
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
# macOS runner: the Rust core is macOS-only (security-framework, tray-icon,
# window-vibrancy) — it won't compile on Linux, so the `cargo test` extra needs macOS.
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- run: bun install
# vite build → dist/, which lib.rs's `generate_context!()` embeds at compile
# time; without it the `cargo test` gate can't compile.
- run: bun run build
- run: bunx dobby check