From 7820a1bfdda920ed001ea47dafc9575cc39f13b5 Mon Sep 17 00:00:00 2001 From: Gregory Szorc Date: Mon, 16 Jan 2023 07:26:31 -0800 Subject: [PATCH] just: refactor macOS build script Builds still intermittently fail a lot for me. So let's retry the build once before giving up. To avoid repetition we use a shell for loop. --- Justfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Justfile b/Justfile index 68079897..079ba39a 100644 --- a/Justfile +++ b/Justfile @@ -39,14 +39,11 @@ release-build-macos tag: rm -rf build dist git checkout {{tag}} - ./build-macos.py --python cpython-3.8 --optimizations pgo - ./build-macos.py --python cpython-3.8 --optimizations pgo+lto - ./build-macos.py --python cpython-3.9 --optimizations pgo - ./build-macos.py --python cpython-3.9 --optimizations pgo+lto - ./build-macos.py --python cpython-3.10 --optimizations pgo - ./build-macos.py --python cpython-3.10 --optimizations pgo+lto - ./build-macos.py --python cpython-3.11 --optimizations pgo - ./build-macos.py --python cpython-3.11 --optimizations pgo+lto + for py in cpython-3.8 cpython-3.9 cpython-3.10 cpython-3.11; do + for opt in pgo pgo+lto; do + ./build-macos.py --python $py --optimizations $opt || ./build-macos.py --python $py --optimizations $opt + done + done # Trigger builds of aarch64-apple-darwin release artifacts. release-build-macos-remote tag: