From c7a7034618907cbd3fc4c27c8eea1cb51a639fca Mon Sep 17 00:00:00 2001 From: Corwin Date: Tue, 22 Feb 2022 23:36:46 +0000 Subject: [PATCH] don't rebuild if file exists --- mgba-test-runner/build-mgba.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mgba-test-runner/build-mgba.sh b/mgba-test-runner/build-mgba.sh index 05b9bb09..2131535d 100644 --- a/mgba-test-runner/build-mgba.sh +++ b/mgba-test-runner/build-mgba.sh @@ -5,6 +5,11 @@ OUT_DIRECTORY=$2 CURRENT_DIRECTORY=$(pwd) cd ${OUT_DIRECTORY} + +if [[ -f libmgba-cycle.a ]]; then + exit 0 +fi + curl -L https://github.com/mgba-emu/mgba/archive/refs/tags/${MGBA_VERSION}.tar.gz -o mgba-${MGBA_VERSION}.tar.gz tar -xvf mgba-${MGBA_VERSION}.tar.gz cd mgba-${MGBA_VERSION}