Skip to content

Commit 3d59e1f

Browse files
committed
just: remove local macOS aarch64 builds
We recently added support for building aarch64-apple-darwin PGO binaries in GitHub Actions, following GitHub making ARM macOS runners available for free. We can now do away with our hacky release mechanism that was SSHing into my personal M1 Mac Mini to build these PGO binaries.
1 parent 736ad2f commit 3d59e1f

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

Justfile

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,6 @@ release-download-distributions token commit:
3030
mkdir -p dist
3131
cargo run --release -- fetch-release-distributions --token {{token}} --commit {{commit}} --dest dist
3232

33-
# Perform local builds for macOS
34-
release-build-macos tag:
35-
#!/bin/bash
36-
set -exo pipefail
37-
38-
export PATH=~/.pyenv/shims:$PATH
39-
40-
rm -rf build dist
41-
git checkout {{tag}}
42-
for py in cpython-3.8 cpython-3.9 cpython-3.10 cpython-3.11 cpython-3.12; 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
47-
48-
# Trigger builds of aarch64-apple-darwin release artifacts.
49-
release-build-macos-remote tag:
50-
ssh macmini just --working-directory /Users/gps/src/python-build-standalone --justfile /Users/gps/src/python-build-standalone/Justfile release-build-macos {{tag}}
51-
mkdir -p dist
52-
scp 'macmini:~/src/python-build-standalone/dist/*.zst' dist/
53-
cargo run --release -- convert-install-only dist/cpython-*-aarch64-apple-darwin-pgo+lto*.zst
54-
5533
# Upload release artifacts to a GitHub release.
5634
release-upload-distributions token datetime tag:
5735
cargo run --release -- upload-release-distributions --token {{token}} --datetime {{datetime}} --tag {{tag}} --dist dist
@@ -82,7 +60,6 @@ release token commit tag:
8260

8361
rm -rf dist
8462
just release-download-distributions {{token}} {{commit}}
85-
just release-build-macos-remote {{tag}}
8663
datetime=$(ls dist/cpython-3.10.*-x86_64-unknown-linux-gnu-install_only-*.tar.gz | awk -F- '{print $8}' | awk -F. '{print $1}')
8764
just release-upload-distributions {{token}} ${datetime} {{tag}}
8865
just release-set-latest-release {{tag}}

0 commit comments

Comments
 (0)