Skip to content

Commit 960137e

Browse files
authored
Change CI runner to self-hosted (#4742)
* Change CI runner to self-hosted * Add container specification to CI workflow * Add step to install CA certificates in CI workflow * Change CI image to Ubuntu and simplify steps Updated CI workflow to use Ubuntu instead of Debian and removed unnecessary dependency installation steps. * Install build tools for CI workflow Added installation of build-essential tools for Go build. * Add ca-certificates to build tools installation
1 parent eea11e9 commit 960137e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,26 @@ env:
1616
jobs:
1717
ci:
1818
name: ci flow
19-
runs-on: ubuntu-latest
19+
runs-on: self-hosted
20+
container:
21+
image: ubuntu:latest
2022
steps:
2123
- uses: actions/checkout@v3
2224
# with:
2325
# submodules: recursive
2426

27+
- name: Install build tools
28+
run: |
29+
apt-get update
30+
apt-get install -y build-essential ca-certificates
2531
- name: Set up Go
2632
uses: actions/setup-go@v3
2733
with:
2834
go-version: 1.23.0
2935
cache: false
3036

3137
- name: Build Go
32-
run: go build ./...
38+
run: CGO_ENABLED=1 go build ./...
3339

3440
- name: Run Test
3541
id: unittest

0 commit comments

Comments
 (0)