Skip to content

Commit 3f39760

Browse files
committed
Make the released binaries statically linked
1 parent 4d6901d commit 3f39760

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

circle.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
checkout:
2-
post:
3-
- git fetch --tags
1+
dependencies:
2+
pre:
3+
- sudo apt-get update; sudo apt-get install clang-3.6
44
deployment:
55
tag:
66
tag: /v[0-9]+(\.[0-9]+)*(-.*)*/
77
owner: bep
88
commands:
99
- gem install fpm
10+
- export CC="clang-3.6"
1011
- curl -sL https://git.io/goreleaser | bash

goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
build:
22
main: main.go
33
binary: s3deploy
4+
ldflags: -s -w -linkmode external -extldflags "-static"
45
goos:
56
- darwin
67
- linux

0 commit comments

Comments
 (0)