Skip to content

Commit 9ee733a

Browse files
committed
self-hosted runner 1
1 parent db646bc commit 9ee733a

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

Diff for: .github/workflows/ci.yml

+25-11
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,21 @@ env:
1212
GO_VERSION: 1.22.3
1313

1414
jobs:
15+
setup-runners:
16+
runs-on: [self-hosted, base1]
17+
18+
steps:
19+
- name: Start GitHub Runners
20+
run: |
21+
start_github_runners.sh
22+
shell: bash
23+
24+
- name: Wait for Runners to Be Ready
25+
run: sleep 60
26+
1527
setup-params:
16-
runs-on: self-hosted
28+
runs-on: [self-hosted, docker]
29+
needs: [setup-runners]
1730
steps:
1831
- uses: actions/checkout@v4
1932

@@ -47,7 +60,8 @@ jobs:
4760
run: echo "Cache saved"
4861

4962
setup-deps:
50-
runs-on: self-hosted
63+
runs-on: [self-hosted, docker]
64+
needs: [setup-runners]
5165
outputs:
5266
make_deps_key: ${{ steps.make_deps.outputs.key }}
5367
make_deps_path: ${{ steps.make_deps.outputs.path }}
@@ -101,7 +115,7 @@ jobs:
101115
path: ${{ steps.make_deps.outputs.path }}
102116

103117
build-all:
104-
runs-on: self-hosted
118+
runs-on: [self-hosted, docker]
105119
needs: [setup-deps]
106120
steps:
107121
- uses: actions/checkout@v4
@@ -127,7 +141,7 @@ jobs:
127141
shell: bash
128142

129143
test:
130-
runs-on: self-hosted
144+
runs-on: [self-hosted, docker]
131145
needs: [setup-params, setup-deps]
132146
strategy:
133147
matrix:
@@ -188,7 +202,7 @@ jobs:
188202

189203
lint:
190204
needs: [setup-deps]
191-
runs-on: self-hosted
205+
runs-on: [self-hosted, docker]
192206
steps:
193207
- uses: actions/checkout@v4
194208

@@ -219,7 +233,7 @@ jobs:
219233
shell: bash
220234

221235
gofmt:
222-
runs-on: self-hosted
236+
runs-on: [self-hosted, docker]
223237
steps:
224238
- uses: actions/checkout@v4
225239

@@ -245,7 +259,7 @@ jobs:
245259
shell: bash
246260

247261
cbor-check:
248-
runs-on: self-hosted
262+
runs-on: [self-hosted, docker]
249263
steps:
250264
- uses: actions/checkout@v4
251265

@@ -278,7 +292,7 @@ jobs:
278292
shell: bash
279293

280294
docs-check:
281-
runs-on: self-hosted
295+
runs-on: [self-hosted, docker]
282296
steps:
283297
- uses: actions/checkout@v4
284298

@@ -307,7 +321,7 @@ jobs:
307321
shell: bash
308322

309323
gen-check:
310-
runs-on: self-hosted
324+
runs-on: [self-hosted, docker]
311325
steps:
312326
- uses: actions/checkout@v4
313327

@@ -340,7 +354,7 @@ jobs:
340354
shell: bash
341355

342356
lid-docker-compose:
343-
runs-on: self-hosted
357+
runs-on: [self-hosted, docker]
344358
needs: [setup-params, setup-deps]
345359
steps:
346360
- uses: actions/checkout@v4
@@ -377,7 +391,7 @@ jobs:
377391
shell: bash
378392

379393
mod-tidy-check:
380-
runs-on: self-hosted
394+
runs-on: [self-hosted, docker]
381395
steps:
382396
- uses: actions/checkout@v4
383397

0 commit comments

Comments
 (0)