Skip to content

Commit

Permalink
self-hosted runner 1
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed Jul 26, 2024
1 parent db646bc commit 9ee733a
Showing 1 changed file with 25 additions and 11 deletions.
36 changes: 25 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,21 @@ env:
GO_VERSION: 1.22.3

jobs:
setup-runners:
runs-on: [self-hosted, base1]

steps:
- name: Start GitHub Runners
run: |
start_github_runners.sh
shell: bash

- name: Wait for Runners to Be Ready
run: sleep 60

setup-params:
runs-on: self-hosted
runs-on: [self-hosted, docker]
needs: [setup-runners]
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -47,7 +60,8 @@ jobs:
run: echo "Cache saved"

setup-deps:
runs-on: self-hosted
runs-on: [self-hosted, docker]
needs: [setup-runners]
outputs:
make_deps_key: ${{ steps.make_deps.outputs.key }}
make_deps_path: ${{ steps.make_deps.outputs.path }}
Expand Down Expand Up @@ -101,7 +115,7 @@ jobs:
path: ${{ steps.make_deps.outputs.path }}

build-all:
runs-on: self-hosted
runs-on: [self-hosted, docker]
needs: [setup-deps]
steps:
- uses: actions/checkout@v4
Expand All @@ -127,7 +141,7 @@ jobs:
shell: bash

test:
runs-on: self-hosted
runs-on: [self-hosted, docker]
needs: [setup-params, setup-deps]
strategy:
matrix:
Expand Down Expand Up @@ -188,7 +202,7 @@ jobs:

lint:
needs: [setup-deps]
runs-on: self-hosted
runs-on: [self-hosted, docker]
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -219,7 +233,7 @@ jobs:
shell: bash

gofmt:
runs-on: self-hosted
runs-on: [self-hosted, docker]
steps:
- uses: actions/checkout@v4

Expand All @@ -245,7 +259,7 @@ jobs:
shell: bash

cbor-check:
runs-on: self-hosted
runs-on: [self-hosted, docker]
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -278,7 +292,7 @@ jobs:
shell: bash

docs-check:
runs-on: self-hosted
runs-on: [self-hosted, docker]
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -307,7 +321,7 @@ jobs:
shell: bash

gen-check:
runs-on: self-hosted
runs-on: [self-hosted, docker]
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -340,7 +354,7 @@ jobs:
shell: bash

lid-docker-compose:
runs-on: self-hosted
runs-on: [self-hosted, docker]
needs: [setup-params, setup-deps]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -377,7 +391,7 @@ jobs:
shell: bash

mod-tidy-check:
runs-on: self-hosted
runs-on: [self-hosted, docker]
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 9ee733a

Please sign in to comment.