diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index a44dbb9..c38c6ff 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -17,7 +17,7 @@ jobs: go-version: "stable" - name: Test - run: go test -count=1 -v ./... + run: CGO_ENABLED=0 go test -count=1 -v ./... lint: runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 035657f..6ac9b26 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,7 +50,7 @@ jobs: read -r goos goarch artifact_name <<< "$variant" echo "Building for GOOS=$goos GOARCH=$goarch..." - GOOS=$goos GOARCH=$goarch BINPATH="out/$artifact_name" make build + CGO_ENABLED=0 GOOS=$goos GOARCH=$goarch BINPATH="out/$artifact_name" make build done - name: Upload Build Artifact diff --git a/Makefile b/Makefile index 745d9b9..1692d07 100644 --- a/Makefile +++ b/Makefile @@ -17,4 +17,4 @@ embed: $(CHAT_SOURCES_STAMP) .PHONY: build build: embed - go build -o ${BINPATH} main.go + CGO_ENABLED=0 go build -o ${BINPATH} main.go