aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/git.yml
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2022-12-02 15:38:58 +0000
committerPaulo Gomes <pjbgf@linux.com>2022-12-02 15:38:58 +0000
commita0b612a537f499b2cc9bddafac625e12c73bd3f5 (patch)
tree2138f92b4361ed10cdd528f48d3445e241459668 /.github/workflows/git.yml
parent3e07c5030b4e3b2fcbcb461f9f6b23212f978335 (diff)
downloadgo-git-a0b612a537f499b2cc9bddafac625e12c73bd3f5.tar.gz
build: Add CI check for CGO_ENABLED=0
Some applications that depend on go-git may not need to build using CGO. The new test ensures no new regressions going forwards. Signed-off-by: Paulo Gomes <pjbgf@linux.com>
Diffstat (limited to '.github/workflows/git.yml')
-rw-r--r--.github/workflows/git.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/git.yml b/.github/workflows/git.yml
index fef2127..ba664a2 100644
--- a/.github/workflows/git.yml
+++ b/.github/workflows/git.yml
@@ -38,3 +38,8 @@ jobs:
- name: Test
run: make test-coverage
+
+ - name: Build go-git with CGO disabled
+ run: go build ./...
+ env:
+ CGO_ENABLED: 0