Repository navigation
92 lines (81 loc) · 2.5 KB
/
Copy pathci.yml
File metadata and controls
92 lines (81 loc) · 2.5 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
rust:
name: Rust Core, CLI, TUI & GUI Backend
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run Clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Run unit, integration, and property tests
run: cargo test --workspace
frontend:
name: Svelte + TypeScript GUI Frontend
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/gui
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: apps/gui/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run svelte-check (TypeScript & Svelte types)
run: npm run check
- name: Build production GUI bundle
run: npm run build
# The Tauri shell is its own Cargo workspace, so it needs its own toolchain
# setup and the Linux webview development packages. This job only compiles
# the app — the release workflow produces the actual installers.
desktop:
name: Tauri Desktop Shell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Linux webview dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf \
libfuse2 \
file
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: apps/gui/package-lock.json
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Install frontend dependencies
run: npm ci
working-directory: apps/gui
- name: Check formatting
run: cargo fmt --all -- --check
working-directory: apps/gui/src-tauri
- name: Run Clippy
run: cargo clippy --all-targets -- -D warnings
working-directory: apps/gui/src-tauri
- name: Build the desktop app
run: npx tauri build --debug --bundles deb
working-directory: apps/gui