Skip to content

Commit

Permalink
Build static without CGO
Browse files Browse the repository at this point in the history
  • Loading branch information
smiller171 authored Aug 2, 2019
1 parent 915d661 commit 2a0c503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
- src-v1-{{ .Branch }}-
- src-v1-
- checkout
- run: go build -o terraform-provider-errorcheck_v${CIRCLE_TAG}_linux_amd64
- run: CGO_ENABLED=0 go build -a -ldflags '-s' -o terraform-provider-errorcheck_v${CIRCLE_TAG}_linux_amd64
- run: pwd && ls -la
- persist_to_workspace:
root: "."
Expand All @@ -107,7 +107,7 @@ jobs:
- src-v1-{{ .Branch }}-
- src-v1-
- checkout
- run: GOOS=darwin GOARCH=amd64 go build -o terraform-provider-errorcheck_v${CIRCLE_TAG}_darwin_amd64
- run: GOOS=darwin GOARCH=amd64 go build -a -ldflags '-s' -o terraform-provider-errorcheck_v${CIRCLE_TAG}_darwin_amd64
- run: pwd && ls -la
- persist_to_workspace:
root: "."
Expand Down

0 comments on commit 2a0c503

Please sign in to comment.