Skip to content

Commit eda20c0

Browse files
ci: install gcc + libc6-dev in Test job for -race/CGO
The self-hosted ARC runner image ships without a C toolchain (gcc/cc missing), so 'go test -race' (needs CGO) failed to build -> exit 2. Install gcc + libc6-dev before the race test, matching the wa-omnistream CI pattern.
1 parent 28e3c84 commit eda20c0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ jobs:
6565
go-version: ${{ env.GO_VERSION }}
6666
cache-dependency-path: go.sum
6767
- run: go mod download
68+
- name: Install C toolchain (for -race / CGO)
69+
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends gcc libc6-dev
6870
- name: test (race + coverage)
6971
run: go test -race -covermode=atomic -coverprofile=coverage.out -count=1 ./...
7072
- name: Upload coverage to Codecov

0 commit comments

Comments
 (0)