Open History to see the last commit
1name: CI
2
3on:
4 pull_request:
5 push:
6 branches:
7 - main
8
9concurrency:
10 group: ci-${{ github.event.pull_request.number || github.sha }}
11 cancel-in-progress: ${{ github.event_name == 'pull_request' }}
12
13jobs:
14 check:
15 name: Check
16 runs-on: blacksmith-8vcpu-ubuntu-2404
17 timeout-minutes: 10
18 steps:
19 - name: Checkout
20 uses: actions/checkout@v6
21 with:
22 sparse-checkout: |
23 /*
24 !/.repos/
25 sparse-checkout-cone-mode: false
26
27 - name: Setup Vite+
28 uses: voidzero-dev/setup-vp@v1
29 with:
30 node-version-file: package.json
31 cache: true
32 run-install: true
33
34 - name: Setup Rust
35 uses: dtolnay/rust-toolchain@stable
36 with:
37 components: rustfmt
38
39 - name: Ensure Electron runtime is installed
40 run: vp run --filter @t3tools/desktop ensure:electron
41
42 - name: Check
43 run: vp check
44
45 - name: Typecheck
46 run: vpr typecheck
47
48 - name: Check resource monitor formatting
49 run: cargo fmt --manifest-path native/resource-monitor/Cargo.toml -- --check
50
51 - name: Build desktop pipeline
52 run: vp run build:desktop
53
54 - name: Verify preload bundle output
55 run: |
56 test -f apps/desktop/dist-electron/preload.cjs
57 grep -nE "desktopBridge|getLocalEnvironmentBootstrap|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.cjs
58 grep -n "__clerk_internal_electron_passkeys" apps/desktop/dist-electron/preload.cjs
59
60 test:
61 name: Test
62 runs-on: blacksmith-8vcpu-ubuntu-2404
63 timeout-minutes: 10
64 steps:
65 - name: Checkout
66 uses: actions/checkout@v6
67 with:
68 sparse-checkout: |
69 /*
70 !/.repos/
71 sparse-checkout-cone-mode: false
72
73 # Blacksmith boots GitHub's Ubuntu runner image (gcc is usually present),
74 # but ACP process-tree live tests compile a small pthread fixture with `cc`
75 # and soft-skip when it is missing. Install build-essential so that path
76 # always runs in CI instead of silently no-oping.
77 - name: Install C toolchain for process-tree fixtures
78 run: |
79 sudo apt-get update
80 sudo apt-get install -y --no-install-recommends build-essential
81 command -v cc
82
83 - name: Setup Vite+
84 uses: voidzero-dev/setup-vp@v1
85 with:
86 node-version-file: package.json
87 cache: true
88 run-install: true
89
90 - name: Setup Rust
91 uses: dtolnay/rust-toolchain@stable
92
93 - name: Ensure Electron runtime is installed
94 run: vp run --filter @t3tools/desktop ensure:electron
95
96 - name: Test
97 env:
98 T3CODE_TRANSFER_BUDGET_REPORT_PATH: ${{ runner.temp }}/t3code-transfer-budget.md
99 T3CODE_TRANSFER_BUDGET_RESULT_PATH: ${{ runner.temp }}/thread-transfer-result.json
100 run: vp run test
101
102 - name: Publish transfer budget report
103 if: always()
104 run: |
105 if test -f "${{ runner.temp }}/t3code-transfer-budget.md"; then
106 tee -a "$GITHUB_STEP_SUMMARY" < "${{ runner.temp }}/t3code-transfer-budget.md"
107 else
108 echo "Transfer budget report was not produced." >> "$GITHUB_STEP_SUMMARY"
109 fi
110
111 - name: Upload thread transfer result
112 if: always()
113 uses: actions/upload-artifact@v7
114 with:
115 name: thread-transfer-results
116 path: ${{ runner.temp }}/thread-transfer-result.json
117 if-no-files-found: ignore
118 retention-days: 30
119
120 - name: Test resource monitor
121 run: cargo test --locked --manifest-path native/resource-monitor/Cargo.toml
122
123 mobile_native_static_analysis:
124 name: Mobile Native Static Analysis
125 runs-on: blacksmith-6vcpu-macos-26
126 timeout-minutes: 10
127 steps:
128 - name: Checkout
129 uses: actions/checkout@v6
130 with:
131 sparse-checkout: |
132 /*
133 !/.repos/
134 sparse-checkout-cone-mode: false
135
136 - name: Setup Vite+
137 uses: voidzero-dev/setup-vp@v1
138 with:
139 node-version-file: package.json
140 cache: true
141 run-install: |
142 args:
143 - --filter=@t3tools/scripts...
144
145 - name: Install mobile native static analysis tools
146 run: brew bundle install --file apps/mobile/Brewfile
147
148 - name: Lint mobile native sources
149 run: vp run lint:mobile
150
151 release_smoke:
152 name: Release Smoke
153 runs-on: blacksmith-8vcpu-ubuntu-2404
154 timeout-minutes: 10
155 steps:
156 - name: Checkout
157 uses: actions/checkout@v6
158 with:
159 sparse-checkout: |
160 /*
161 !/.repos/
162 sparse-checkout-cone-mode: false
163
164 - name: Setup Vite+
165 uses: voidzero-dev/setup-vp@v1
166 with:
167 node-version-file: package.json
168 cache: true
169 run-install: |
170 args:
171 - --filter=@t3tools/scripts...
172
173 - name: Exercise release-only workflow steps
174 run: node scripts/release-smoke.ts