@devries-cameron20 / t3code Mirror · read-only / commits / e4829603ff
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 19:00 UTC

perf(ci): cut stale runs and redundant setup (#4802)

Theo Browne committed Jul 30, 2026 at 11:25 UTC e4829603ff70bdeac96780e1512ac2c09638e5a3
6 files changed +126 -14
.github/workflows/ci.yml
+31 -3
@@ -6,6 +6,10 @@ on:
6 branches:
7 - main
8
9 +concurrency:
10 + group: ci-${{ github.event.pull_request.number || github.sha }}
11 + cancel-in-progress: ${{ github.event_name == 'pull_request' }}
12 +
13 jobs:
14 check:
15 name: Check
@@ -14,6 +18,11 @@ jobs:
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
@@ -55,6 +64,11 @@ jobs:
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 - name: Setup Vite+
74 uses: voidzero-dev/setup-vp@v1
@@ -77,18 +91,25 @@ jobs:
91
92 mobile_native_static_analysis:
93 name: Mobile Native Static Analysis
80 - runs-on: blacksmith-12vcpu-macos-26
94 + runs-on: blacksmith-6vcpu-macos-26
95 timeout-minutes: 10
96 steps:
97 - name: Checkout
98 uses: actions/checkout@v6
99 + with:
100 + sparse-checkout: |
101 + /*
102 + !/.repos/
103 + sparse-checkout-cone-mode: false
104
105 - name: Setup Vite+
106 uses: voidzero-dev/setup-vp@v1
107 with:
108 node-version-file: package.json
109 cache: true
91 - run-install: true
110 + run-install: |
111 + args:
112 + - --filter=@t3tools/scripts...
113
114 - name: Install mobile native static analysis tools
115 run: brew bundle install --file apps/mobile/Brewfile
@@ -103,13 +124,20 @@ jobs:
124 steps:
125 - name: Checkout
126 uses: actions/checkout@v6
127 + with:
128 + sparse-checkout: |
129 + /*
130 + !/.repos/
131 + sparse-checkout-cone-mode: false
132
133 - name: Setup Vite+
134 uses: voidzero-dev/setup-vp@v1
135 with:
136 node-version-file: package.json
137 cache: true
112 - run-install: true
138 + run-install: |
139 + args:
140 + - --filter=@t3tools/scripts...
141
142 - name: Exercise release-only workflow steps
143 run: node scripts/release-smoke.ts
.github/workflows/deploy-relay.yml
+8 -1
@@ -38,13 +38,20 @@ jobs:
38 steps:
39 - name: Checkout
40 uses: actions/checkout@v6
41 + with:
42 + sparse-checkout: |
43 + /*
44 + !/.repos/
45 + sparse-checkout-cone-mode: false
46
47 - name: Setup Vite+
48 uses: voidzero-dev/setup-vp@v1
49 with:
50 node-version-file: package.json
51 cache: true
47 - run-install: true
52 + run-install: |
53 + args:
54 + - --filter=t3code-relay...
55
56 - name: Deploy production relay stage
57 id: deploy
.github/workflows/mobile-eas-preview.yml
+14 -3
@@ -2,13 +2,18 @@ name: Mobile EAS Preview
2
3 on:
4 pull_request:
5 - types: [opened, reopened, synchronize, labeled, unlabeled]
5 + types: [opened, reopened, synchronize, labeled]
6
7 jobs:
8 preview:
9 name: EAS Preview
10 - if: contains(github.event.pull_request.labels.*.name, '🚀 Mobile Continuous Deployment')
10 + if: |
11 + contains(github.event.pull_request.labels.*.name, '🚀 Mobile Continuous Deployment') &&
12 + (github.event.action != 'labeled' || github.event.label.name == '🚀 Mobile Continuous Deployment')
13 runs-on: blacksmith-8vcpu-ubuntu-2404
14 + concurrency:
15 + group: mobile-eas-preview-${{ github.event.pull_request.number }}
16 + cancel-in-progress: true
17 permissions:
18 contents: read
19 pull-requests: write
@@ -34,6 +39,10 @@ jobs:
39 uses: actions/checkout@v6
40 with:
41 fetch-depth: 0
42 + sparse-checkout: |
43 + /*
44 + !/.repos/
45 + sparse-checkout-cone-mode: false
46
47 - name: Setup Vite+
48 if: steps.expo-token.outputs.present == 'true'
@@ -41,7 +50,9 @@ jobs:
50 with:
51 node-version-file: package.json
52 cache: true
44 - run-install: true
53 + run-install: |
54 + args:
55 + - --filter=@t3tools/mobile...
56
57 - name: Expose pnpm
58 if: steps.expo-token.outputs.present == 'true'
.github/workflows/mobile-eas-production.yml
+7 -1
@@ -57,6 +57,10 @@ jobs:
57 uses: actions/checkout@v6
58 with:
59 fetch-depth: 0
60 + sparse-checkout: |
61 + /*
62 + !/.repos/
63 + sparse-checkout-cone-mode: false
64
65 - name: Setup Vite+
66 if: steps.expo-token.outputs.present == 'true'
@@ -64,7 +68,9 @@ jobs:
68 with:
69 node-version-file: package.json
70 cache: true
67 - run-install: true
71 + run-install: |
72 + args:
73 + - --filter=@t3tools/mobile...
74
75 - name: Expose pnpm
76 if: steps.expo-token.outputs.present == 'true'
.github/workflows/mobile-showcase-screenshots.yml
+18 -2
@@ -37,13 +37,21 @@ jobs:
37 steps:
38 - name: Checkout
39 uses: actions/checkout@v6
40 + with:
41 + sparse-checkout: |
42 + /*
43 + !/.repos/
44 + sparse-checkout-cone-mode: false
45
46 - name: Setup Vite+
47 uses: voidzero-dev/setup-vp@v1
48 with:
49 node-version-file: package.json
50 cache: true
46 - run-install: true
51 + run-install: |
52 + args:
53 + - --filter=@t3tools/mobile...
54 + - --filter=@t3tools/scripts...
55
56 - name: Expose pnpm
57 run: |
@@ -77,13 +85,21 @@ jobs:
85 steps:
86 - name: Checkout
87 uses: actions/checkout@v6
88 + with:
89 + sparse-checkout: |
90 + /*
91 + !/.repos/
92 + sparse-checkout-cone-mode: false
93
94 - name: Setup Vite+
95 uses: voidzero-dev/setup-vp@v1
96 with:
97 node-version-file: package.json
98 cache: true
86 - run-install: true
99 + run-install: |
100 + args:
101 + - --filter=@t3tools/mobile...
102 + - --filter=@t3tools/scripts...
103
104 - name: Expose pnpm
105 run: |
.github/workflows/release.yml
+48 -4
@@ -38,6 +38,10 @@ jobs:
38 uses: actions/checkout@v6
39 with:
40 fetch-depth: 0
41 + sparse-checkout: |
42 + /*
43 + !/.repos/
44 + sparse-checkout-cone-mode: false
45
46 - id: check
47 name: Compare HEAD to last nightly tag
@@ -84,6 +88,10 @@ jobs:
88 uses: actions/checkout@v6
89 with:
90 fetch-depth: 0
91 + sparse-checkout: |
92 + /*
93 + !/.repos/
94 + sparse-checkout-cone-mode: false
95
96 - name: Setup Vite+
97 uses: voidzero-dev/setup-vp@v1
@@ -192,6 +200,10 @@ jobs:
200 uses: actions/checkout@v6
201 with:
202 ref: ${{ needs.preflight.outputs.ref }}
203 + sparse-checkout: |
204 + /*
205 + !/.repos/
206 + sparse-checkout-cone-mode: false
207
208 - name: Setup Vite+
209 uses: voidzero-dev/setup-vp@v1
@@ -269,14 +281,19 @@ jobs:
281 uses: actions/checkout@v6
282 with:
283 ref: ${{ needs.preflight.outputs.ref }}
272 - fetch-depth: 0
284 + sparse-checkout: |
285 + /*
286 + !/.repos/
287 + sparse-checkout-cone-mode: false
288
289 - name: Setup Vite+
290 uses: voidzero-dev/setup-vp@v1
291 with:
292 node-version-file: package.json
293 cache: true
279 - run-install: true
294 + run-install: |
295 + args:
296 + - --filter=t3...
297
298 - name: Build node-pty linux-x64 prebuild
299 shell: bash
@@ -359,14 +376,21 @@ jobs:
376 uses: actions/checkout@v6
377 with:
378 ref: ${{ needs.preflight.outputs.ref }}
362 - fetch-depth: 0
379 + sparse-checkout: |
380 + /*
381 + !/.repos/
382 + sparse-checkout-cone-mode: false
383
384 - name: Setup Vite+
385 uses: voidzero-dev/setup-vp@v1
386 with:
387 node-version-file: package.json
388 cache: true
369 - run-install: true
389 + run-install: |
390 + args:
391 + - --filter=@t3tools/desktop...
392 + - --filter=t3...
393 + - --filter=@t3tools/scripts...
394
395 - name: Setup Rust
396 uses: dtolnay/rust-toolchain@stable
@@ -657,6 +681,10 @@ jobs:
681 uses: actions/checkout@v6
682 with:
683 ref: ${{ needs.preflight.outputs.ref }}
684 + sparse-checkout: |
685 + /*
686 + !/.repos/
687 + sparse-checkout-cone-mode: false
688
689 - name: Setup Vite+
690 uses: voidzero-dev/setup-vp@v1
@@ -732,6 +760,10 @@ jobs:
760 uses: actions/checkout@v6
761 with:
762 ref: ${{ needs.preflight.outputs.ref }}
763 + sparse-checkout: |
764 + /*
765 + !/.repos/
766 + sparse-checkout-cone-mode: false
767
768 - name: Setup Vite+
769 uses: voidzero-dev/setup-vp@v1
@@ -853,6 +885,10 @@ jobs:
885 uses: actions/checkout@v6
886 with:
887 ref: ${{ needs.preflight.outputs.ref }}
888 + sparse-checkout: |
889 + /*
890 + !/.repos/
891 + sparse-checkout-cone-mode: false
892
893 - name: Setup Vite+
894 uses: voidzero-dev/setup-vp@v1
@@ -967,6 +1003,10 @@ jobs:
1003 fetch-depth: 0
1004 token: ${{ steps.app_token.outputs.token }}
1005 persist-credentials: true
1006 + sparse-checkout: |
1007 + /*
1008 + !/.repos/
1009 + sparse-checkout-cone-mode: false
1010
1011 - id: app_bot
1012 name: Resolve GitHub App bot identity
@@ -1037,6 +1077,10 @@ jobs:
1077 uses: actions/checkout@v6
1078 with:
1079 ref: ${{ needs.preflight.outputs.ref }}
1080 + sparse-checkout: |
1081 + /*
1082 + !/.repos/
1083 + sparse-checkout-cone-mode: false
1084
1085 - name: Setup Vite+
1086 uses: voidzero-dev/setup-vp@v1