From ecf43f738b5feb14e85d226e093550c82b9d3f3e Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Mon, 25 Jul 2022 22:48:28 +0100 Subject: [PATCH] Only download mgba if it doesn't exist --- mgba-test-runner/build-mgba.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mgba-test-runner/build-mgba.sh b/mgba-test-runner/build-mgba.sh index 6efa2f9c..5261e541 100644 --- a/mgba-test-runner/build-mgba.sh +++ b/mgba-test-runner/build-mgba.sh @@ -6,6 +6,10 @@ CURRENT_DIRECTORY=$(pwd) cd "${OUT_DIRECTORY}" || exit +if [[ ! -f "mgba-${MGBA_VERSION}.tar.gz" ]]; then + curl -L "https://github.com/mgba-emu/mgba/archive/refs/tags/${MGBA_VERSION}.tar.gz" -o "mgba-${MGBA_VERSION}.tar.gz" +fi + if [[ -f libmgba-cycle.a ]]; then exit 0 fi