Skip to content

Commit

Permalink
Disable CGO from builds
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaarni committed Nov 5, 2024
1 parent 74fa8cd commit c486817
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:

- name: Build
run: |
GOOS=linux GOARCH=amd64 go build -v ./cmd/certyaml && tar zcvf certyaml-linux-amd64.tar.gz certyaml && rm certyaml
GOOS=darwin GOARCH=amd64 go build -v ./cmd/certyaml && tar zcvf certyaml-darwin-amd64.tar.gz certyaml && rm certyaml
GOOS=darwin GOARCH=arm64 go build -v ./cmd/certyaml && tar zcvf certyaml-darwin-arm64.tar.gz certyaml && rm certyaml
GOOS=windows GOARCH=amd64 go build -v ./cmd/certyaml && zip certyaml-windows-amd64.zip certyaml.exe && rm certyaml.exe
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -v ./cmd/certyaml && tar zcvf certyaml-linux-amd64.tar.gz certyaml && rm certyaml
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -v ./cmd/certyaml && tar zcvf certyaml-darwin-amd64.tar.gz certyaml && rm certyaml
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -v ./cmd/certyaml && tar zcvf certyaml-darwin-arm64.tar.gz certyaml && rm certyaml
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -v ./cmd/certyaml && zip certyaml-windows-amd64.zip certyaml.exe && rm certyaml.exe
# https://github.com/softprops/action-gh-release
- name: Create Release
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ lint:
go run github.com/golangci/golangci-lint/cmd/[email protected] run

build:
go build -v ./cmd/certyaml
CGO_ENABLED=0 go build -v ./cmd/certyaml

install:
go install -v ./cmd/certyaml
CGO_ENABLED=0 go install -v ./cmd/certyaml

update-modules:
go get -u -t ./... && go mod tidy

0 comments on commit c486817

Please sign in to comment.