From 35a036c16cb4477e9b8a7a3bfbfedea174637c76 Mon Sep 17 00:00:00 2001 From: chenhw2 Date: Tue, 22 May 2018 05:45:42 +0800 Subject: [PATCH] Ensure static linked binary (for linux) (#459) --- .travis.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7f9cf7a4..214601b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -75,49 +75,49 @@ script: - ln ../LICENSE example-dnscrypt-proxy.toml example-*.txt netbsd-amd64/ - tar czpvf dnscrypt-proxy-netbsd_amd64-${TRAVIS_TAG:-dev}.tar.gz netbsd-amd64 - go clean -- env GOOS=linux GOARCH=386 go build -ldflags="-s -w" +- env CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags="-s -w" - mkdir linux-i386 - ln dnscrypt-proxy linux-i386/ - ln ../LICENSE example-dnscrypt-proxy.toml example-*.txt linux-i386/ - tar czpvf dnscrypt-proxy-linux_i386-${TRAVIS_TAG:-dev}.tar.gz linux-i386 - go clean -- env GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" +- env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" - mkdir linux-x86_64 - ln dnscrypt-proxy linux-x86_64/ - ln ../LICENSE example-dnscrypt-proxy.toml example-*.txt linux-x86_64/ - tar czpvf dnscrypt-proxy-linux_x86_64-${TRAVIS_TAG:-dev}.tar.gz linux-x86_64 - go clean -- env GOOS=linux GOARCH=arm go build -ldflags="-s -w" +- env CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags="-s -w" - mkdir linux-arm - ln dnscrypt-proxy linux-arm/ - ln ../LICENSE example-dnscrypt-proxy.toml example-*.txt linux-arm/ - tar czpvf dnscrypt-proxy-linux_arm-${TRAVIS_TAG:-dev}.tar.gz linux-arm - go clean -- env GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" +- env CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" - mkdir linux-arm64 - ln dnscrypt-proxy linux-arm64/ - ln ../LICENSE example-dnscrypt-proxy.toml example-*.txt linux-arm64/ - tar czpvf dnscrypt-proxy-linux_arm64-${TRAVIS_TAG:-dev}.tar.gz linux-arm64 - go clean -- env GOOS=linux GOARCH=mips GOMIPS=softfloat go build -ldflags="-s -w" +- env CGO_ENABLED=0 GOOS=linux GOARCH=mips GOMIPS=softfloat go build -ldflags="-s -w" - mkdir linux-mips - ln dnscrypt-proxy linux-mips/ - ln ../LICENSE example-dnscrypt-proxy.toml example-*.txt linux-mips/ - tar czpvf dnscrypt-proxy-linux_mips-${TRAVIS_TAG:-dev}.tar.gz linux-mips - go clean -- env GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -ldflags="-s -w" +- env CGO_ENABLED=0 GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -ldflags="-s -w" - mkdir linux-mipsle - ln dnscrypt-proxy linux-mipsle/ - ln ../LICENSE example-dnscrypt-proxy.toml example-*.txt linux-mipsle/ - tar czpvf dnscrypt-proxy-linux_mipsle-${TRAVIS_TAG:-dev}.tar.gz linux-mipsle - go clean -- env GOOS=linux GOARCH=mips64 go build -ldflags="-s -w" +- env CGO_ENABLED=0 GOOS=linux GOARCH=mips64 go build -ldflags="-s -w" - mkdir linux-mips64 - ln dnscrypt-proxy linux-mips64/ - ln ../LICENSE example-dnscrypt-proxy.toml example-*.txt linux-mips64/ - tar czpvf dnscrypt-proxy-linux_mips64-${TRAVIS_TAG:-dev}.tar.gz linux-mips64 - go clean -- env GOOS=linux GOARCH=mips64le go build -ldflags="-s -w" +- env CGO_ENABLED=0 GOOS=linux GOARCH=mips64le go build -ldflags="-s -w" - mkdir linux-mips64le - ln dnscrypt-proxy linux-mips64le/ - ln ../LICENSE example-dnscrypt-proxy.toml example-*.txt linux-mips64le/