mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 13:31:54 +00:00
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.
This commit is contained in:
parent
dbc77be26d
commit
47a0340d78
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user