Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cgo disabled when building go binaries #220

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ lint:
build:
go mod download
mkdir -p bin/odin_darwin_amd64
env GOOS=darwin GOARCH=amd64 go build -o bin/odin_darwin_amd64/odin
env GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -o bin/odin_darwin_amd64/odin
mkdir -p bin/odin_darwin_arm64
env GOOS=darwin GOARCH=arm64 go build -o bin/odin_darwin_arm64/odin
env GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -o bin/odin_darwin_arm64/odin
mkdir -p bin/odin_linux_amd64
env GOOS=linux GOARCH=amd64 go build -o bin/odin_linux_amd64/odin
env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o bin/odin_linux_amd64/odin

compressed-builds: build
cd bin/odin_darwin_amd64 && tar -czvf ../odin_darwin_amd64.tar.gz odin
Expand Down
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ type application struct {
// App (Application) interface
var App application = application{
Name: "odin",
Version: "1.3.3",
Version: "1.3.4",
}
Loading