projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18713: Merge branch 'main' into 18713-nvidia-persistenced
[arvados.git]
/
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 2e2e3cdb4078069f9eb1408f1d927ba8c117ed56..e36c4e88c0d0bf146ac88a9d12587ef03b9a960e 100755
(executable)
--- a/
build/run-build-test-packages-one-target.sh
+++ b/
build/run-build-test-packages-one-target.sh
@@
-12,7
+12,9
@@
Syntax:
--target <target>
Distribution to build packages for (default: debian10)
--only-build <package>
--target <target>
Distribution to build packages for (default: debian10)
--only-build <package>
- Build only a specific package (or $ONLY_BUILD from environment)
+ Build only a specific package (or ONLY_BUILD from environment)
+--arch <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)
--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 \
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
-- "" "$@")
if [ $? -ne 0 ]; then
exit 1
@@
-73,6
+75,9
@@
while [ $# -gt 0 ]; do
--only-build)
ONLY_BUILD="$2"; shift
;;
--only-build)
ONLY_BUILD="$2"; shift
;;
+ --arch)
+ ARCH="$2"; shift
+ ;;
--debug)
DEBUG=" --debug"
;;
--debug)
DEBUG=" --debug"
;;
@@
-102,6
+107,10
@@
if [[ -n "$ONLY_BUILD" ]]; then
build_args+=(--only-build "$ONLY_BUILD")
fi
build_args+=(--only-build "$ONLY_BUILD")
fi
+if [[ -n "$ARCH" ]]; then
+ build_args+=(--arch "$ARCH")
+fi
+
exit_cleanly() {
trap - INT
report_outcomes
exit_cleanly() {
trap - INT
report_outcomes