Skip to content

Commit 7820a1b

Browse files
committed
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.
1 parent 2a73982 commit 7820a1b

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Justfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,11 @@ release-build-macos tag:
3939

4040
rm -rf build dist
4141
git checkout {{tag}}
42-
./build-macos.py --python cpython-3.8 --optimizations pgo
43-
./build-macos.py --python cpython-3.8 --optimizations pgo+lto
44-
./build-macos.py --python cpython-3.9 --optimizations pgo
45-
./build-macos.py --python cpython-3.9 --optimizations pgo+lto
46-
./build-macos.py --python cpython-3.10 --optimizations pgo
47-
./build-macos.py --python cpython-3.10 --optimizations pgo+lto
48-
./build-macos.py --python cpython-3.11 --optimizations pgo
49-
./build-macos.py --python cpython-3.11 --optimizations pgo+lto
42+
for py in cpython-3.8 cpython-3.9 cpython-3.10 cpython-3.11; do
43+
for opt in pgo pgo+lto; do
44+
./build-macos.py --python $py --optimizations $opt || ./build-macos.py --python $py --optimizations $opt
45+
done
46+
done
5047

5148
# Trigger builds of aarch64-apple-darwin release artifacts.
5249
release-build-macos-remote tag:

0 commit comments

Comments
 (0)