Skip to content

Commit

Permalink
build: Add CI check for CGO_ENABLED=0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pjbgf committed Dec 2, 2022
1 parent 3e07c50 commit a0b612a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/git.yml
Expand Up @@ -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

0 comments on commit a0b612a

Please sign in to comment.