Skip to content

Commit

Permalink
Merge pull request #221 from dream11/development
Browse files Browse the repository at this point in the history
fix: cgo disabled when building go binaries
  • Loading branch information
akshaypatidar1999 authored Mar 20, 2024
2 parents 0268ec9 + 9a6ffd0 commit f20528a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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",
}

0 comments on commit f20528a

Please sign in to comment.