Skip to content

Commit cfbf2cb

Browse files
authored
Merge pull request #333 from terraphim/fix/runner-configurations
fix: optimize GitHub Actions runner usage
2 parents cffea8d + a109773 commit cfbf2cb

27 files changed

Lines changed: 121 additions & 85 deletions

.github/workflows/ci-native.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919

2020
jobs:
2121
setup:
22-
runs-on: [self-hosted, linux, bigbox]
22+
runs-on: [self-hosted, linux, x64]
2323
outputs:
2424
cache-key: ${{ steps.cache.outputs.key }}
2525
ubuntu-versions: ${{ steps.ubuntu.outputs.versions }}
@@ -55,7 +55,7 @@ jobs:
5555
fi
5656
5757
lint-and-format:
58-
runs-on: [self-hosted, linux, bigbox]
58+
runs-on: [self-hosted, linux, x64]
5959
needs: [setup]
6060
timeout-minutes: 15 # Reduced timeout with faster runner
6161

@@ -103,7 +103,7 @@ jobs:
103103

104104
build-rust:
105105
needs: [setup, build-frontend]
106-
runs-on: [self-hosted, linux, bigbox]
106+
runs-on: [self-hosted, linux, x64]
107107
strategy:
108108
fail-fast: false
109109
matrix:
@@ -257,7 +257,7 @@ jobs:
257257
cache-key: ${{ needs.setup.outputs.cache-key }}
258258

259259
test-suite:
260-
runs-on: [self-hosted, linux, bigbox]
260+
runs-on: [self-hosted, linux, x64]
261261
needs: [setup, build-rust]
262262

263263
steps:
@@ -311,7 +311,7 @@ jobs:
311311
run: ./scripts/ci-check-tests.sh
312312

313313
test-desktop:
314-
runs-on: [self-hosted, linux, bigbox]
314+
runs-on: [self-hosted, linux, x64]
315315
needs: [setup, build-frontend]
316316
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'desktop')
317317

@@ -369,7 +369,7 @@ jobs:
369369
secrets: inherit # pragma: allowlist secret
370370

371371
package-repository:
372-
runs-on: [self-hosted, linux, bigbox]
372+
runs-on: [self-hosted, linux, x64]
373373
needs: [setup, build-rust]
374374
if: github.event_name != 'pull_request'
375375
strategy:
@@ -404,7 +404,7 @@ jobs:
404404
retention-days: 90
405405

406406
security-scan:
407-
runs-on: [self-hosted, linux, bigbox]
407+
runs-on: [self-hosted, linux, x64]
408408
needs: build-docker
409409
if: github.event_name != 'pull_request'
410410

@@ -423,7 +423,7 @@ jobs:
423423
sarif_file: 'trivy-results.sarif'
424424

425425
release:
426-
runs-on: [self-hosted, linux, bigbox]
426+
runs-on: [self-hosted, linux, x64]
427427
needs: [build-rust, build-docker, build-tauri, test-suite, security-scan]
428428
if: startsWith(github.ref, 'refs/tags/')
429429

@@ -497,7 +497,7 @@ jobs:
497497
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
498498

499499
cleanup:
500-
runs-on: [self-hosted, linux, bigbox]
500+
runs-on: [self-hosted, linux, x64]
501501
needs: [build-rust, build-docker, build-tauri, test-suite]
502502
if: always() && github.event_name == 'pull_request'
503503

@@ -513,7 +513,7 @@ jobs:
513513
continue-on-error: true
514514

515515
summary:
516-
runs-on: [self-hosted, linux, bigbox]
516+
runs-on: [self-hosted, linux, x64]
517517
needs: [setup, build-frontend, build-rust, build-docker, build-tauri, test-suite]
518518
if: always()
519519

.github/workflows/ci-optimized.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919

2020
jobs:
2121
setup:
22-
runs-on: [self-hosted, linux, bigbox]
22+
runs-on: [self-hosted, linux, x64]
2323
outputs:
2424
cache-key: ${{ steps.cache.outputs.key }}
2525
ubuntu-versions: ${{ steps.ubuntu.outputs.versions }}
@@ -70,7 +70,7 @@ jobs:
7070
fi
7171
7272
build-base-image:
73-
runs-on: [self-hosted, linux, bigbox]
73+
runs-on: [self-hosted, linux, x64]
7474
needs: setup
7575
if: needs.setup.outputs.should-build == 'true'
7676
outputs:
@@ -114,7 +114,7 @@ jobs:
114114
retention-days: 1
115115

116116
lint-and-format:
117-
runs-on: [self-hosted, linux, bigbox]
117+
runs-on: [self-hosted, linux, x64]
118118
needs: [setup, build-base-image]
119119
if: needs.setup.outputs.should-build == 'true'
120120

@@ -157,7 +157,7 @@ jobs:
157157
cache-key: ${{ needs.setup.outputs.cache-key }}
158158

159159
build-rust:
160-
runs-on: [self-hosted, linux, bigbox]
160+
runs-on: [self-hosted, linux, x64]
161161
needs: [setup, build-base-image, build-frontend, lint-and-format]
162162
if: needs.setup.outputs.should-build == 'true'
163163
strategy:
@@ -235,7 +235,7 @@ jobs:
235235
retention-days: 30
236236

237237
test:
238-
runs-on: [self-hosted, linux, bigbox]
238+
runs-on: [self-hosted, linux, x64]
239239
needs: [setup, build-base-image, build-rust]
240240
if: needs.setup.outputs.should-build == 'true'
241241

@@ -264,7 +264,7 @@ jobs:
264264
summary:
265265
needs: [lint-and-format, build-frontend, build-rust, test]
266266
if: always()
267-
runs-on: [self-hosted, linux, bigbox]
267+
runs-on: [self-hosted, linux, x64]
268268

269269
steps:
270270
- name: Check all jobs succeeded

.github/workflows/claude-code-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# github.event.pull_request.user.login == 'new-developer' ||
1919
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
2020

21-
runs-on: [self-hosted, linux, bigbox]
21+
runs-on: [self-hosted, linux, x64]
2222
permissions:
2323
contents: read
2424
pull-requests: read

.github/workflows/deploy-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ env:
3535
jobs:
3636
build:
3737
name: Build Documentation
38-
runs-on: ubuntu-latest
38+
runs-on: [self-hosted, linux, x64]
3939
steps:
4040
- name: Checkout repository
4141
uses: actions/checkout@v4
@@ -65,7 +65,7 @@ jobs:
6565
name: Deploy Preview
6666
needs: build
6767
if: github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'preview')
68-
runs-on: ubuntu-latest
68+
runs-on: [self-hosted, linux, x64]
6969
permissions:
7070
contents: read
7171
deployments: write
@@ -126,7 +126,7 @@ jobs:
126126
name: Deploy Production
127127
needs: build
128128
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'production')
129-
runs-on: ubuntu-latest
129+
runs-on: [self-hosted, linux, x64]
130130
permissions:
131131
contents: read
132132
deployments: write
@@ -178,7 +178,7 @@ jobs:
178178
purge-cache:
179179
name: Purge CDN Cache
180180
needs: deploy-production
181-
runs-on: ubuntu-latest
181+
runs-on: [self-hosted, linux, x64]
182182
permissions:
183183
id-token: write
184184
steps:

.github/workflows/docker-multiarch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ env:
3939

4040
jobs:
4141
build-and-push:
42-
runs-on: ubuntu-latest
42+
runs-on: [self-hosted, linux, x64]
4343
strategy:
4444
matrix:
4545
ubuntu-version: ${{ fromJSON(inputs.ubuntu-versions) }}
@@ -138,7 +138,7 @@ jobs:
138138
139139
build-summary:
140140
needs: build-and-push
141-
runs-on: ubuntu-latest
141+
runs-on: [self-hosted, linux, x64]
142142
if: always()
143143

144144
steps:

.github/workflows/earthly-runner.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020

2121
jobs:
2222
setup:
23-
runs-on: [self-hosted, linux, bigbox]
23+
runs-on: [self-hosted, linux, x64]
2424
outputs:
2525
should-build: ${{ steps.changes.outputs.should-build }}
2626

@@ -49,7 +49,7 @@ jobs:
4949
lint-and-format:
5050
needs: setup
5151
if: needs.setup.outputs.should-build == 'true'
52-
runs-on: [self-hosted, linux, bigbox]
52+
runs-on: [self-hosted, linux, x64]
5353

5454
steps:
5555
- name: Checkout code
@@ -66,7 +66,7 @@ jobs:
6666
build-frontend:
6767
needs: setup
6868
if: needs.setup.outputs.should-build == 'true'
69-
runs-on: [self-hosted, linux, bigbox]
69+
runs-on: [self-hosted, linux, x64]
7070

7171
steps:
7272
- name: Checkout code
@@ -88,7 +88,7 @@ jobs:
8888
build-native:
8989
needs: [setup, lint-and-format, build-frontend]
9090
if: needs.setup.outputs.should-build == 'true'
91-
runs-on: [self-hosted, linux, bigbox]
91+
runs-on: [self-hosted, linux, x64]
9292

9393
steps:
9494
- name: Checkout code
@@ -112,7 +112,7 @@ jobs:
112112
test:
113113
needs: [setup, build-native]
114114
if: needs.setup.outputs.should-build == 'true'
115-
runs-on: [self-hosted, linux, bigbox]
115+
runs-on: [self-hosted, linux, x64]
116116

117117
steps:
118118
- name: Checkout code
@@ -128,7 +128,7 @@ jobs:
128128
build-cross:
129129
needs: [setup, build-native]
130130
if: needs.setup.outputs.should-build == 'true' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
131-
runs-on: [self-hosted, linux, bigbox]
131+
runs-on: [self-hosted, linux, x64]
132132
strategy:
133133
fail-fast: false
134134
matrix:
@@ -159,7 +159,7 @@ jobs:
159159
earthly-success:
160160
needs: [lint-and-format, build-frontend, build-native, test]
161161
if: always()
162-
runs-on: [self-hosted, linux, bigbox]
162+
runs-on: [self-hosted, linux, x64]
163163
steps:
164164
- name: Check all jobs succeeded
165165
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')

.github/workflows/frontend-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919

2020
jobs:
2121
build:
22-
runs-on: [self-hosted, linux, bigbox]
22+
runs-on: [self-hosted, linux, x64]
2323
timeout-minutes: 20 # Reduced timeout with faster runner
2424
outputs:
2525
dist-path: ${{ steps.build.outputs.dist-path }}

.github/workflows/package-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111

1212
jobs:
1313
release:
14-
runs-on: ubuntu-latest
14+
runs-on: [self-hosted, linux, x64]
1515
steps:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4

.github/workflows/publish-tauri.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
include:
17-
- platform: macos-latest
17+
- platform: [self-hosted, macOS, X64]
1818
webkit-package: ""
1919
- platform: ubuntu-22.04
2020
webkit-package: "libwebkit2gtk-4.0-dev"

0 commit comments

Comments
 (0)