Skip to content

Commit

Permalink
just: refactor macOS build script
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
indygreg committed Jan 16, 2023
1 parent 2a73982 commit 7820a1b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7820a1b

Please sign in to comment.