diff options
Diffstat (limited to 'ci-legacy/env-common.inc.sh')
-rw-r--r-- | ci-legacy/env-common.inc.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ci-legacy/env-common.inc.sh b/ci-legacy/env-common.inc.sh new file mode 100644 index 0000000..1e2f9ed --- /dev/null +++ b/ci-legacy/env-common.inc.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +: "${LOCAL_BUILDS:=$HOME/local-builds}" +: "${LOCAL_INSTALLS:=$HOME/local-installs}" +: "${BOTAN_INSTALL:=$LOCAL_INSTALLS/botan-install}" +: "${JSONC_INSTALL:=$LOCAL_INSTALLS/jsonc-install}" +: "${GPG_INSTALL:=$LOCAL_INSTALLS/gpg-install}" +: "${RNP_INSTALL:=$LOCAL_INSTALLS/rnp-install}" +: "${CPU:=}" +: "${SUDO:=}" + +for var in LOCAL_BUILDS LOCAL_INSTALLS BOTAN_INSTALL JSONC_INSTALL \ + GPG_INSTALL RNP_INSTALL CPU SUDO; do + export "${var?}" +done + +: "${BUILD_MODE:=normal}" + +if [ "$BUILD_MODE" = "sanitize" ]; then + export CXX=clang++ + export CC=clang +fi + +# Don't clean up tempdirs when in CI runners to save time. Unset to disable. +export RNP_KEEP_TEMP=1 |