X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/836a871b3a985e74004d709de8ca80db7705180c..40120fd953bb5b9624519c42fd81ee2be2efe20f:/build/run-build-test-packages-one-target.sh diff --git a/build/run-build-test-packages-one-target.sh b/build/run-build-test-packages-one-target.sh index 2e2e3cdb40..e36c4e88c0 100755 --- a/build/run-build-test-packages-one-target.sh +++ b/build/run-build-test-packages-one-target.sh @@ -12,7 +12,9 @@ Syntax: --target Distribution to build packages for (default: debian10) --only-build - Build only a specific package (or $ONLY_BUILD from environment) + Build only a specific package (or ONLY_BUILD from environment) +--arch + Build a specific architecture (or ARCH from environment, defaults to native architecture) --upload If the build and test steps are successful, upload the packages to a remote apt repository (default: false) @@ -46,7 +48,7 @@ if ! [[ -d "$WORKSPACE" ]]; then fi PARSEDOPTS=$(getopt --name "$0" --longoptions \ - help,debug,upload,rc,target:,only-build:,build-version: \ + help,debug,upload,rc,target:,only-build:,arch:,build-version: \ -- "" "$@") if [ $? -ne 0 ]; then exit 1 @@ -73,6 +75,9 @@ while [ $# -gt 0 ]; do --only-build) ONLY_BUILD="$2"; shift ;; + --arch) + ARCH="$2"; shift + ;; --debug) DEBUG=" --debug" ;; @@ -102,6 +107,10 @@ if [[ -n "$ONLY_BUILD" ]]; then build_args+=(--only-build "$ONLY_BUILD") fi +if [[ -n "$ARCH" ]]; then + build_args+=(--arch "$ARCH") +fi + exit_cleanly() { trap - INT report_outcomes