diff --git a/bot/build.sh b/bot/build.sh index 504f197e79..fd84b46e83 100755 --- a/bot/build.sh +++ b/bot/build.sh @@ -177,13 +177,6 @@ if [[ "${REPOSITORY}" == dev.eessi.io ]]; then COMMON_ARGS+=("--repository" "software.eessi.io,access=ro") fi -# Skip CUDA installation for riscv.eessi.io -if [[ "${REPOSITORY}" == riscv.eessi.io* ]]; then - echo "bot/build.sh: disabling CUDA installation for RISC-V repository ${REPOSITORY}" - INSTALL_SCRIPT_ARGS+=("--skip-cuda-install") -fi -echo "DEBUG: repo: ${REPOSITORY}, ${INSTALL_SCRIPTS_ARGS[@]}" - # make sure to use the same parent dir for storing tarballs of tmp PREVIOUS_TMP_DIR=${PWD}/previous_tmp @@ -198,6 +191,13 @@ fi [[ ! -z ${BUILD_LOGS_DIR} ]] && INSTALL_SCRIPT_ARGS+=("--build-logs-dir" "${BUILD_LOGS_DIR}") [[ ! -z ${SHARED_FS_PATH} ]] && INSTALL_SCRIPT_ARGS+=("--shared-fs-path" "${SHARED_FS_PATH}") +# Skip CUDA installation for riscv.eessi.io +if [[ "${REPOSITORY}" == riscv.eessi.io* ]]; then + echo "bot/build.sh: disabling CUDA installation for RISC-V repository ${REPOSITORY}" + INSTALL_SCRIPT_ARGS+=("--skip-cuda-install") +fi +echo "DEBUG: repo: ${REPOSITORY}, ${INSTALL_SCRIPTS_ARGS[@]}" + # determine if the removal step has to be run # assume there's only one diff file that corresponds to the PR patch file pr_diff=$(ls [0-9]*.diff | head -1)