Skip to content

Commit 30fcc57

Browse files
committed
perf(ci): cut redundant workflow setup
1 parent 71d91a5 commit 30fcc57

6 files changed

Lines changed: 122 additions & 14 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v6
21+
with:
22+
sparse-checkout: |
23+
/*
24+
!/.repos/
25+
sparse-checkout-cone-mode: false
2126

2227
- name: Setup Vite+
2328
uses: voidzero-dev/setup-vp@v1
@@ -51,6 +56,11 @@ jobs:
5156
steps:
5257
- name: Checkout
5358
uses: actions/checkout@v6
59+
with:
60+
sparse-checkout: |
61+
/*
62+
!/.repos/
63+
sparse-checkout-cone-mode: false
5464

5565
- name: Setup Vite+
5666
uses: voidzero-dev/setup-vp@v1
@@ -67,18 +77,25 @@ jobs:
6777

6878
mobile_native_static_analysis:
6979
name: Mobile Native Static Analysis
70-
runs-on: blacksmith-12vcpu-macos-26
80+
runs-on: blacksmith-6vcpu-macos-26
7181
timeout-minutes: 10
7282
steps:
7383
- name: Checkout
7484
uses: actions/checkout@v6
85+
with:
86+
sparse-checkout: |
87+
/*
88+
!/.repos/
89+
sparse-checkout-cone-mode: false
7590

7691
- name: Setup Vite+
7792
uses: voidzero-dev/setup-vp@v1
7893
with:
7994
node-version-file: package.json
8095
cache: true
81-
run-install: true
96+
run-install: |
97+
args:
98+
- --filter=@t3tools/scripts...
8299
83100
- name: Install mobile native static analysis tools
84101
run: brew bundle install --file apps/mobile/Brewfile
@@ -93,13 +110,20 @@ jobs:
93110
steps:
94111
- name: Checkout
95112
uses: actions/checkout@v6
113+
with:
114+
sparse-checkout: |
115+
/*
116+
!/.repos/
117+
sparse-checkout-cone-mode: false
96118

97119
- name: Setup Vite+
98120
uses: voidzero-dev/setup-vp@v1
99121
with:
100122
node-version-file: package.json
101123
cache: true
102-
run-install: true
124+
run-install: |
125+
args:
126+
- --filter=@t3tools/scripts...
103127
104128
- name: Exercise release-only workflow steps
105129
run: node scripts/release-smoke.ts

‎.github/workflows/deploy-relay.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,20 @@ jobs:
3838
steps:
3939
- name: Checkout
4040
uses: actions/checkout@v6
41+
with:
42+
sparse-checkout: |
43+
/*
44+
!/.repos/
45+
sparse-checkout-cone-mode: false
4146

4247
- name: Setup Vite+
4348
uses: voidzero-dev/setup-vp@v1
4449
with:
4550
node-version-file: package.json
4651
cache: true
47-
run-install: true
52+
run-install: |
53+
args:
54+
- --filter=t3code-relay...
4855
4956
- name: Deploy production relay stage
5057
id: deploy

‎.github/workflows/mobile-eas-preview.yml‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@ name: Mobile EAS Preview
22

33
on:
44
pull_request:
5-
types: [opened, reopened, synchronize, labeled, unlabeled]
5+
types: [opened, reopened, synchronize, labeled]
66

77
jobs:
88
preview:
99
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')
1113
runs-on: blacksmith-8vcpu-ubuntu-2404
14+
concurrency:
15+
group: mobile-eas-preview-${{ github.event.pull_request.number }}
16+
cancel-in-progress: true
1217
permissions:
1318
contents: read
1419
pull-requests: write
@@ -34,14 +39,20 @@ jobs:
3439
uses: actions/checkout@v6
3540
with:
3641
fetch-depth: 0
42+
sparse-checkout: |
43+
/*
44+
!/.repos/
45+
sparse-checkout-cone-mode: false
3746

3847
- name: Setup Vite+
3948
if: steps.expo-token.outputs.present == 'true'
4049
uses: voidzero-dev/setup-vp@v1
4150
with:
4251
node-version-file: package.json
4352
cache: true
44-
run-install: true
53+
run-install: |
54+
args:
55+
- --filter=@t3tools/mobile...
4556
4657
- name: Expose pnpm
4758
if: steps.expo-token.outputs.present == 'true'

‎.github/workflows/mobile-eas-production.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,20 @@ jobs:
5757
uses: actions/checkout@v6
5858
with:
5959
fetch-depth: 0
60+
sparse-checkout: |
61+
/*
62+
!/.repos/
63+
sparse-checkout-cone-mode: false
6064

6165
- name: Setup Vite+
6266
if: steps.expo-token.outputs.present == 'true'
6367
uses: voidzero-dev/setup-vp@v1
6468
with:
6569
node-version-file: package.json
6670
cache: true
67-
run-install: true
71+
run-install: |
72+
args:
73+
- --filter=@t3tools/mobile...
6874
6975
- name: Expose pnpm
7076
if: steps.expo-token.outputs.present == 'true'

‎.github/workflows/mobile-showcase-screenshots.yml‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,21 @@ jobs:
3737
steps:
3838
- name: Checkout
3939
uses: actions/checkout@v6
40+
with:
41+
sparse-checkout: |
42+
/*
43+
!/.repos/
44+
sparse-checkout-cone-mode: false
4045

4146
- name: Setup Vite+
4247
uses: voidzero-dev/setup-vp@v1
4348
with:
4449
node-version-file: package.json
4550
cache: true
46-
run-install: true
51+
run-install: |
52+
args:
53+
- --filter=@t3tools/mobile...
54+
- --filter=@t3tools/scripts...
4755
4856
- name: Expose pnpm
4957
run: |
@@ -77,13 +85,21 @@ jobs:
7785
steps:
7886
- name: Checkout
7987
uses: actions/checkout@v6
88+
with:
89+
sparse-checkout: |
90+
/*
91+
!/.repos/
92+
sparse-checkout-cone-mode: false
8093

8194
- name: Setup Vite+
8295
uses: voidzero-dev/setup-vp@v1
8396
with:
8497
node-version-file: package.json
8598
cache: true
86-
run-install: true
99+
run-install: |
100+
args:
101+
- --filter=@t3tools/mobile...
102+
- --filter=@t3tools/scripts...
87103
88104
- name: Expose pnpm
89105
run: |

‎.github/workflows/release.yml‎

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ jobs:
3838
uses: actions/checkout@v6
3939
with:
4040
fetch-depth: 0
41+
sparse-checkout: |
42+
/*
43+
!/.repos/
44+
sparse-checkout-cone-mode: false
4145

4246
- id: check
4347
name: Compare HEAD to last nightly tag
@@ -84,6 +88,10 @@ jobs:
8488
uses: actions/checkout@v6
8589
with:
8690
fetch-depth: 0
91+
sparse-checkout: |
92+
/*
93+
!/.repos/
94+
sparse-checkout-cone-mode: false
8795

8896
- name: Setup Vite+
8997
uses: voidzero-dev/setup-vp@v1
@@ -192,6 +200,10 @@ jobs:
192200
uses: actions/checkout@v6
193201
with:
194202
ref: ${{ needs.preflight.outputs.ref }}
203+
sparse-checkout: |
204+
/*
205+
!/.repos/
206+
sparse-checkout-cone-mode: false
195207

196208
- name: Setup Vite+
197209
uses: voidzero-dev/setup-vp@v1
@@ -269,14 +281,19 @@ jobs:
269281
uses: actions/checkout@v6
270282
with:
271283
ref: ${{ needs.preflight.outputs.ref }}
272-
fetch-depth: 0
284+
sparse-checkout: |
285+
/*
286+
!/.repos/
287+
sparse-checkout-cone-mode: false
273288

274289
- name: Setup Vite+
275290
uses: voidzero-dev/setup-vp@v1
276291
with:
277292
node-version-file: package.json
278293
cache: true
279-
run-install: true
294+
run-install: |
295+
args:
296+
- --filter=t3...
280297
281298
- name: Build node-pty linux-x64 prebuild
282299
shell: bash
@@ -351,14 +368,21 @@ jobs:
351368
uses: actions/checkout@v6
352369
with:
353370
ref: ${{ needs.preflight.outputs.ref }}
354-
fetch-depth: 0
371+
sparse-checkout: |
372+
/*
373+
!/.repos/
374+
sparse-checkout-cone-mode: false
355375

356376
- name: Setup Vite+
357377
uses: voidzero-dev/setup-vp@v1
358378
with:
359379
node-version-file: package.json
360380
cache: true
361-
run-install: true
381+
run-install: |
382+
args:
383+
- --filter=@t3tools/desktop...
384+
- --filter=t3...
385+
- --filter=@t3tools/scripts...
362386
363387
- name: Download relay client tracing config
364388
uses: actions/download-artifact@v8
@@ -624,6 +648,10 @@ jobs:
624648
uses: actions/checkout@v6
625649
with:
626650
ref: ${{ needs.preflight.outputs.ref }}
651+
sparse-checkout: |
652+
/*
653+
!/.repos/
654+
sparse-checkout-cone-mode: false
627655

628656
- name: Setup Vite+
629657
uses: voidzero-dev/setup-vp@v1
@@ -681,6 +709,10 @@ jobs:
681709
uses: actions/checkout@v6
682710
with:
683711
ref: ${{ needs.preflight.outputs.ref }}
712+
sparse-checkout: |
713+
/*
714+
!/.repos/
715+
sparse-checkout-cone-mode: false
684716

685717
- name: Setup Vite+
686718
uses: voidzero-dev/setup-vp@v1
@@ -802,6 +834,10 @@ jobs:
802834
uses: actions/checkout@v6
803835
with:
804836
ref: ${{ needs.preflight.outputs.ref }}
837+
sparse-checkout: |
838+
/*
839+
!/.repos/
840+
sparse-checkout-cone-mode: false
805841

806842
- name: Setup Vite+
807843
uses: voidzero-dev/setup-vp@v1
@@ -916,6 +952,10 @@ jobs:
916952
fetch-depth: 0
917953
token: ${{ steps.app_token.outputs.token }}
918954
persist-credentials: true
955+
sparse-checkout: |
956+
/*
957+
!/.repos/
958+
sparse-checkout-cone-mode: false
919959

920960
- id: app_bot
921961
name: Resolve GitHub App bot identity
@@ -986,6 +1026,10 @@ jobs:
9861026
uses: actions/checkout@v6
9871027
with:
9881028
ref: ${{ needs.preflight.outputs.ref }}
1029+
sparse-checkout: |
1030+
/*
1031+
!/.repos/
1032+
sparse-checkout-cone-mode: false
9891033

9901034
- name: Setup Vite+
9911035
uses: voidzero-dev/setup-vp@v1

0 commit comments

Comments
 (0)