parent
6ae7140251
commit
11259dee07
|
@ -17,6 +17,7 @@ GIT_DIRTY=$(test -n "`git status --porcelain`" && echo "+CHANGES" || true)
|
||||||
# Determine the arch/os combos we're building for
|
# Determine the arch/os combos we're building for
|
||||||
XC_ARCH=${XC_ARCH:-"386 amd64 arm"}
|
XC_ARCH=${XC_ARCH:-"386 amd64 arm"}
|
||||||
XC_OS=${XC_OS:-linux darwin windows freebsd openbsd solaris}
|
XC_OS=${XC_OS:-linux darwin windows freebsd openbsd solaris}
|
||||||
|
XC_EXCLUDE_OSARCH="!darwin/arm"
|
||||||
|
|
||||||
# Delete the old dir
|
# Delete the old dir
|
||||||
echo "==> Removing old directory..."
|
echo "==> Removing old directory..."
|
||||||
|
@ -49,6 +50,7 @@ echo "==> Building..."
|
||||||
gox \
|
gox \
|
||||||
-os="${XC_OS}" \
|
-os="${XC_OS}" \
|
||||||
-arch="${XC_ARCH}" \
|
-arch="${XC_ARCH}" \
|
||||||
|
-osarch="${XC_EXCLUDE_OSARCH}" \
|
||||||
-ldflags "${LD_FLAGS}" \
|
-ldflags "${LD_FLAGS}" \
|
||||||
-output "pkg/{{.OS}}_{{.Arch}}/terraform" \
|
-output "pkg/{{.OS}}_{{.Arch}}/terraform" \
|
||||||
.
|
.
|
||||||
|
|
Loading…
Reference in New Issue