-
Notifications
You must be signed in to change notification settings - Fork 33
57 lines (45 loc) · 1.3 KB
/
Copy pathci.yml
File metadata and controls
57 lines (45 loc) · 1.3 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check:
strategy:
fail-fast: false
matrix:
platform: [windows-latest, ubuntu-24.04]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: swatinem/rust-cache@v2
# Caching is an optimization — a flaky GitHub cache service must never
# fail the build (it took down a Windows release once).
continue-on-error: true
with:
workspaces: './src-tauri -> target'
- name: Install Linux dependencies
if: matrix.platform == 'ubuntu-24.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install frontend dependencies
run: bun install
- name: Build frontend (tsc + vite)
run: bun run build
- name: Run frontend tests
run: bun run test
- name: Check Rust
working-directory: src-tauri
run: cargo check