Open History to see the last commit
1name: CI
2
3on:
4 pull_request:
5 push:
6 branches:
7 - main
8
9jobs:
10 check:
11 name: Check
12 runs-on: blacksmith-8vcpu-ubuntu-2404
13 timeout-minutes: 10
14 steps:
15 - name: Checkout
16 uses: actions/checkout@v6
17
18 - name: Setup Vite+
19 uses: voidzero-dev/setup-vp@v1
20 with:
21 node-version-file: package.json
22 cache: true
23 run-install: true
24
25 - name: Setup Rust
26 uses: dtolnay/rust-toolchain@stable
27 with:
28 components: rustfmt
29
30 - name: Ensure Electron runtime is installed
31 run: vp run --filter @t3tools/desktop ensure:electron
32
33 - name: Check
34 run: vp check
35
36 - name: Typecheck
37 run: vpr typecheck
38
39 - name: Check resource monitor formatting
40 run: cargo fmt --manifest-path native/resource-monitor/Cargo.toml -- --check
41
42 - name: Build desktop pipeline
43 run: vp run build:desktop
44
45 - name: Verify preload bundle output
46 run: |
47 test -f apps/desktop/dist-electron/preload.cjs
48 grep -nE "desktopBridge|getLocalEnvironmentBootstrap|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.cjs
49 grep -n "__clerk_internal_electron_passkeys" apps/desktop/dist-electron/preload.cjs
50
51 test:
52 name: Test
53 runs-on: blacksmith-8vcpu-ubuntu-2404
54 timeout-minutes: 10
55 steps:
56 - name: Checkout
57 uses: actions/checkout@v6
58
59 # Blacksmith boots GitHub's Ubuntu runner image (gcc is usually present),
60 # but ACP process-tree live tests compile a small pthread fixture with `cc`
61 # and soft-skip when it is missing. Install build-essential so that path
62 # always runs in CI instead of silently no-oping.
63 - name: Install C toolchain for process-tree fixtures
64 run: |
65 sudo apt-get update
66 sudo apt-get install -y --no-install-recommends build-essential
67 command -v cc
68
69 - name: Setup Vite+
70 uses: voidzero-dev/setup-vp@v1
71 with:
72 node-version-file: package.json
73 cache: true
74 run-install: true
75
76 - name: Setup Rust
77 uses: dtolnay/rust-toolchain@stable
78
79 - name: Ensure Electron runtime is installed
80 run: vp run --filter @t3tools/desktop ensure:electron
81
82 - name: Test
83 run: vp run test
84
85 - name: Test resource monitor
86 run: cargo test --locked --manifest-path native/resource-monitor/Cargo.toml
87
88 mobile_native_static_analysis:
89 name: Mobile Native Static Analysis
90 runs-on: blacksmith-12vcpu-macos-26
91 timeout-minutes: 10
92 steps:
93 - name: Checkout
94 uses: actions/checkout@v6
95
96 - name: Setup Vite+
97 uses: voidzero-dev/setup-vp@v1
98 with:
99 node-version-file: package.json
100 cache: true
101 run-install: true
102
103 - name: Install mobile native static analysis tools
104 run: brew bundle install --file apps/mobile/Brewfile
105
106 - name: Lint mobile native sources
107 run: vp run lint:mobile
108
109 release_smoke:
110 name: Release Smoke
111 runs-on: blacksmith-8vcpu-ubuntu-2404
112 timeout-minutes: 10
113 steps:
114 - name: Checkout
115 uses: actions/checkout@v6
116
117 - name: Setup Vite+
118 uses: voidzero-dev/setup-vp@v1
119 with:
120 node-version-file: package.json
121 cache: true
122 run-install: true
123
124 - name: Exercise release-only workflow steps
125 run: node scripts/release-smoke.ts