ci: stage the Mac launch check on the internal volume
Build / macos (push) Successful in 26s

This commit is contained in:
2026-09-09 23:56:02 +02:00
parent cda28cc6be
commit 4d87288f2f
+7 -1
View File
@@ -10,7 +10,13 @@ import urllib.error
import urllib.request import urllib.request
from pathlib import Path from pathlib import Path
app = Path(sys.argv[1]) / "Contents/MacOS/Meetingnotes" # Launch from the Mac's internal volume; the runner checkout is on removable storage.
cache = Path.home() / "Library/Caches/meetingnotes-ci"
cache.mkdir(parents=True, exist_ok=True)
with tempfile.TemporaryDirectory(prefix="smoke-", dir=cache) as directory:
staged = Path(directory) / "Meetingnotes.app"
subprocess.run(["ditto", sys.argv[1], str(staged)], check=True)
app = staged / "Contents/MacOS/Meetingnotes"
with socket.socket() as listener: with socket.socket() as listener:
listener.bind(("127.0.0.1", 0)) listener.bind(("127.0.0.1", 0))
port = listener.getsockname()[1] port = listener.getsockname()[1]