Skip to content

Commit

Permalink
chore(workflows): added CGO_ENABLED=0 to go build
Browse files Browse the repository at this point in the history
- We will use this env var setting for a release to work with alpine
- Mirroring this here so the build behaviors are identical
  • Loading branch information
hadjian committed Dec 4, 2023
1 parent b3cbdc5 commit d5c57c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: Jerome1337/[email protected]

- name: Build
run: go build -v ./...
run: CGO_ENABLED=0 go build -v ./...

- name: Test
run: go test -v ./...
run: CGO_ENABLED=0 go test -v ./...
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ go.work
# IntelliJ
.idea/

# Emacs tmp files
# Emacs
.dir-locals.el

# Various tmp files
*~
*.swp

# tm-catalog-cli configuration
config.json

0 comments on commit d5c57c1

Please sign in to comment.