From 47a0340d78981cf7d2772a1414c076a0cb612be4 Mon Sep 17 00:00:00 2001 From: Erik Seliger Date: Tue, 19 Oct 2021 15:11:36 +0200 Subject: [PATCH] Release arm versions of src-expose (#26265) No customer asked for these, but I figured it can't hurt. Also setting the GOARCH explicitly makes it safer that the amd64 labeled binaries actually are amd64. --- dev/src-expose/release.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dev/src-expose/release.sh b/dev/src-expose/release.sh index 6c5244a674b..828b389b5e3 100755 --- a/dev/src-expose/release.sh +++ b/dev/src-expose/release.sh @@ -8,9 +8,11 @@ cd "src-expose/$(git rev-parse HEAD)" echo "src-expose built from https://github.com/sourcegraph/sourcegraph" >info.txt echo >>info.txt git log -n1 >>info.txt -mkdir linux-amd64 darwin-amd64 -CGO_ENABLED=0 GOOS=linux go build -trimpath -o linux-amd64/src-expose github.com/sourcegraph/sourcegraph/dev/src-expose -CGO_ENABLED=0 GOOS=darwin go build -trimpath -o darwin-amd64/src-expose github.com/sourcegraph/sourcegraph/dev/src-expose +mkdir linux-amd64 darwin-amd64 linux-arm64 darwin-arm64 +CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -o linux-amd64/src-expose github.com/sourcegraph/sourcegraph/dev/src-expose +CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -trimpath -o darwin-amd64/src-expose github.com/sourcegraph/sourcegraph/dev/src-expose +CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -trimpath -o linux-arm64/src-expose github.com/sourcegraph/sourcegraph/dev/src-expose +CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -trimpath -o darwin-arm64/src-expose github.com/sourcegraph/sourcegraph/dev/src-expose cd - rm -rf src-expose/latest cp -r "src-expose/$(git rev-parse HEAD)" src-expose/latest