Skip to content

Commit 66f0f31

Browse files
committed
enable static build: since there are no more dependencies required we can do this
TODO test this on multiple platforms/os
1 parent e4f4c0d commit 66f0f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ tasks:
3030
desc: Build the project, to use a specific version use `task build TAG_VERSION=x.x.x`
3131
dir: "{{.DEFAULT_GO_MODULE_PATH}}"
3232
cmds:
33-
- go build -v -i {{default "" .ADDITIONAL_FLAGS}} -o {{default "arduino-create-agent" .APP_NAME}} -ldflags '-X main.version={{default .TAG_TEST .TAG_VERSION}} -X main.git_revision={{.COMMIT}} {{default "" .WIN_FLAGS}}'
33+
- CGO_ENABLED=0 go build -v -i {{default "" .ADDITIONAL_FLAGS}} -o {{default "arduino-create-agent" .APP_NAME}} -ldflags '-X main.version={{default .TAG_TEST .TAG_VERSION}} -X main.git_revision={{.COMMIT}} {{default "" .WIN_FLAGS}}'
3434
vars:
3535
COMMIT:
3636
sh: git log -n 1 --format=%h

0 commit comments

Comments
 (0)