Skip to content

Commit

Permalink
goreleaser: add -static to LDFLAGS for windows build (#5594)
Browse files Browse the repository at this point in the history
* goreleaser: add -static to LDFLAGS for windows build

* ci: turning on cgo and -static for windows builds
  • Loading branch information
nicksieger authored Mar 15, 2022
1 parent b1ac829 commit aa3efbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ jobs:
- checkout
- run: iex ./scripts/install-dc2.ps1
# Check to make sure Windows binaries compile
- run: go install -mod vendor ./cmd/tilt
- run:
command: go install -mod vendor ./cmd/tilt
environment:
CGO_ENABLED: '1'
CGO_LDFLAGS: -static
- run: make shorttestsum
- run: iex ./scripts/install.ps1
- store_test_results:
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ builds:
- amd64
env:
- CGO_ENABLED=1
- CGO_LDFLAGS=-static
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
archives:
Expand Down

0 comments on commit aa3efbc

Please sign in to comment.