Merge pull request #9077 from hashicorp/remove-freebsd-builds

scripts/build: Remove unsupported Freebsd/arm builds from build chain
This commit is contained in:
Megan Marsh 2020-04-16 15:55:47 -07:00 committed by GitHub
commit 774f77f0a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
# Determine the arch/os combos we're building for # Determine the arch/os combos we're building for
ALL_XC_ARCH="386 amd64 arm arm64 ppc64le mips mips64 mipsle mipsle64 s390x" ALL_XC_ARCH="386 amd64 arm arm64 ppc64le mips mips64 mipsle mipsle64 s390x"
ALL_XC_OS="linux darwin windows freebsd openbsd solaris" ALL_XC_OS="linux darwin windows freebsd openbsd solaris"
SKIPPED_OSARCH="!darwin/arm !darwin/arm64 !freebsd/arm !freebsd/arm64"
# Exit immediately if a command fails # Exit immediately if a command fails
set -e set -e
@ -130,7 +131,7 @@ set +e
${GOX:?command not found} \ ${GOX:?command not found} \
-os="${XC_OS:-$ALL_XC_OS}" \ -os="${XC_OS:-$ALL_XC_OS}" \
-arch="${XC_ARCH:-$ALL_XC_ARCH}" \ -arch="${XC_ARCH:-$ALL_XC_ARCH}" \
-osarch="!darwin/arm !darwin/arm64" \ -osarch="${SKIPPED_OSARCH}" \
-ldflags "${GOLDFLAGS}" \ -ldflags "${GOLDFLAGS}" \
-output "pkg/{{.OS}}_{{.Arch}}/packer" \ -output "pkg/{{.OS}}_{{.Arch}}/packer" \
. .