Only support Docker builds on amd64

This commit is contained in:
Joshua M. Boniface 2020-03-23 14:49:55 -04:00
parent 93d1256a4c
commit c61e95d117

View File

@ -39,6 +39,10 @@ do_build_native() {
}
do_build_docker() {
if ! dpkg --print-architecture | grep -q 'amd64'; then
echo "Docker-based builds only support amd64-based cross-building; use a native build instead"
exit 1
fi
if [[ ! -f deployment/Dockerfile.${PLATFORM} ]]; then
echo "Missing Dockerfile for platform ${PLATFORM}"
exit 1