diff options
author | Paulo Gomes <pjbgf@linux.com> | 2022-12-02 15:38:58 +0000 |
---|---|---|
committer | Paulo Gomes <pjbgf@linux.com> | 2022-12-02 15:38:58 +0000 |
commit | a0b612a537f499b2cc9bddafac625e12c73bd3f5 (patch) | |
tree | 2138f92b4361ed10cdd528f48d3445e241459668 /.github/workflows | |
parent | 3e07c5030b4e3b2fcbcb461f9f6b23212f978335 (diff) | |
download | go-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')
-rw-r--r-- | .github/workflows/git.yml | 5 |
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 |