Files
ziti/linux-build.sh
T
Kenneth Bingham 3ac5d55204 add a Dockerfile and shell script for reproducible Linux builds of all Ziti artifacts to enable forks and contributors who can't run ziti-ci
Release v0.22.12

always build the Linux container with latest Go

Use go install instead of go get

reconcile upstream's main workflow

reconcile upstream's common/version/info_generated.go
2021-11-22 11:36:06 -05:00

13 lines
503 B
Bash
Executable File

#!/usr/bin/env bash
#
# build the Linux artifacts for amd64, arm, arm64
#
# see instructions to run reproducible build with Docker in ./Dockerfile.linux-build
#
set -o pipefail -e -u
GOX_OUTPUT="release/{{.Arch}}/{{.OS}}/{{.Dir}}"
CGO_ENABLED=true gox -os=linux -arch=amd64 -output=${GOX_OUTPUT} ./...
CC=arm-linux-gnueabihf-gcc CGO_ENABLED=true gox -cgo -os=linux -arch=arm -output=${GOX_OUTPUT} ./...
CC=aarch64-linux-gnu-gcc CGO_ENABLED=true gox -cgo -os=linux -arch=arm64 -output=$GOX_OUTPUT ./...