From b8d925ec8200acebfb7d908dcd08181ce2f5b112 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Wed, 5 Jun 2024 09:52:22 +0200 Subject: [PATCH] remove build cache when on gh actions --- scripts/android/build_monero_all.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/android/build_monero_all.sh b/scripts/android/build_monero_all.sh index 1ed5e54f2..d2b90681f 100755 --- a/scripts/android/build_monero_all.sh +++ b/scripts/android/build_monero_all.sh @@ -16,6 +16,11 @@ fi ../prepare_moneroc.sh +if [[ ! "x$RUNNER_OS" == "x" ]]; +then + REMOVE_CACHES=ON +fi + # NOTE: -j1 is intentional. Otherwise you will run into weird behaviour on macos if [[ ! "x$USE_DOCKER" == "x" ]]; then @@ -33,9 +38,14 @@ else do pushd ../monero_c ./build_single.sh ${COIN} x86_64-linux-android $NPROC + [[ ! "x$REMOVE_CACHES" == "x" ]] && rm -rf monero/contrib/depends/x86_64-linux-android # ./build_single.sh ${COIN} i686-linux-android $NPROC + # [[ ! "x$REMOVE_CACHES" == "x" ]] && rm -rf monero/contrib/depends/i686-linux-android ./build_single.sh ${COIN} arm-linux-androideabi $NPROC + [[ ! "x$REMOVE_CACHES" == "x" ]] && rm -rf monero/contrib/depends/arm-linux-androideabi ./build_single.sh ${COIN} aarch64-linux-android $NPROC + [[ ! "x$REMOVE_CACHES" == "x" ]] && rm -rf monero/contrib/depends/aarch64-linux-android + popd done fi