mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
Update CI workflow to install CGO dependencies for Go builds
Some checks failed
CI/CD Pipeline / backend-lint (push) Failing after 28s
CI/CD Pipeline / backend-build (push) Has been skipped
CI/CD Pipeline / frontend-lint (push) Successful in 1m39s
CI/CD Pipeline / frontend-build (push) Failing after 32s
CI/CD Pipeline / e2e-test (push) Has been skipped
Some checks failed
CI/CD Pipeline / backend-lint (push) Failing after 28s
CI/CD Pipeline / backend-build (push) Has been skipped
CI/CD Pipeline / frontend-lint (push) Successful in 1m39s
CI/CD Pipeline / frontend-build (push) Failing after 32s
CI/CD Pipeline / e2e-test (push) Has been skipped
- Add step to install GCC for CGO support in the CI pipeline - Set CGO_ENABLED environment variable to enable CGO during testing
This commit is contained in:
parent
f434b26dd4
commit
0e56f50c38
@ -65,6 +65,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: '1.25.3'
|
go-version: '1.25.3'
|
||||||
cache: true
|
cache: true
|
||||||
|
- name: Install CGO dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y gcc
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: bugulma/backend
|
working-directory: bugulma/backend
|
||||||
run: go mod download
|
run: go mod download
|
||||||
@ -112,6 +116,7 @@ jobs:
|
|||||||
run: go test -v -race -coverprofile=coverage.out ./...
|
run: go test -v -race -coverprofile=coverage.out ./...
|
||||||
env:
|
env:
|
||||||
GO111MODULE: on
|
GO111MODULE: on
|
||||||
|
CGO_ENABLED: 1
|
||||||
GOPROXY: https://proxy.golang.org,direct
|
GOPROXY: https://proxy.golang.org,direct
|
||||||
GOSUMDB: sum.golang.org
|
GOSUMDB: sum.golang.org
|
||||||
- name: Coverage
|
- name: Coverage
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user