From 083893c36ba8cdd983d1c64dbd7c507988029c57 Mon Sep 17 00:00:00 2001 From: "Michael G. Kazakov" Date: Mon, 22 Jan 2024 10:23:46 +0000 Subject: [PATCH] No path randomization to have better caching with ccache (#97) --- Scripts/build_unsigned.sh | 5 +++-- Scripts/run_all_unit_tests.sh | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Scripts/build_unsigned.sh b/Scripts/build_unsigned.sh index c8fd2bb45..a3f47fcce 100755 --- a/Scripts/build_unsigned.sh +++ b/Scripts/build_unsigned.sh @@ -19,8 +19,9 @@ export LC_CTYPE=en_US.UTF-8 # get current directory SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -# allocate a temp dir for build artifacts -BUILD_DIR=$(mktemp -d ${SCRIPTS_DIR}/build_unsigned.tmp) +# allocate a dir for build artifacts +BUILD_DIR="${SCRIPTS_DIR}/build_unsigned.tmp" +mkdir "${BUILD_DIR}" # all builds paths will be relative to ROOT_DIR ROOT_DIR=$(cd "$SCRIPTS_DIR/.." && pwd) diff --git a/Scripts/run_all_unit_tests.sh b/Scripts/run_all_unit_tests.sh index e0df33285..3b2356a1e 100755 --- a/Scripts/run_all_unit_tests.sh +++ b/Scripts/run_all_unit_tests.sh @@ -15,8 +15,9 @@ export LC_CTYPE=en_US.UTF-8 # get current directory SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -# allocate a temp dir for build artifacts -BUILD_DIR=$(mktemp -d ${SCRIPTS_DIR}/build.XXXXXXXXX) +# allocate a dir for build artifacts +BUILD_DIR="${SCRIPTS_DIR}/run_all_unit_tests.tmp" +mkdir "${BUILD_DIR}" ROOT_DIR=$(cd "$SCRIPTS_DIR/.." && pwd)