From 0e56f50c38a7f927f77345c5e5d7a7f99e31279a Mon Sep 17 00:00:00 2001 From: Damir Mukimov Date: Fri, 26 Dec 2025 13:21:00 +0100 Subject: [PATCH] Update CI workflow to install CGO dependencies for Go builds - Add step to install GCC for CGO support in the CI pipeline - Set CGO_ENABLED environment variable to enable CGO during testing --- .gitea/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index defb6a2..fcf63d8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -65,6 +65,10 @@ jobs: with: go-version: '1.25.3' cache: true + - name: Install CGO dependencies + run: | + sudo apt-get update + sudo apt-get install -y gcc - name: Install dependencies working-directory: bugulma/backend run: go mod download @@ -112,6 +116,7 @@ jobs: run: go test -v -race -coverprofile=coverage.out ./... env: GO111MODULE: on + CGO_ENABLED: 1 GOPROXY: https://proxy.golang.org,direct GOSUMDB: sum.golang.org - name: Coverage