Files
osyandClaude Opus 5 34c6ff3670 Add scripts to rebuild the macOS CI runner over SSH
bootstrap.sh recreates the MacStadium runner after a re-image: passwordless
sudo, machine settings (power, Spotlight, software update, screen sharing,
key-only SSH), Homebrew and build dependencies, the patched Squid proxy from
the squid-patch submodule (as a boot-time LaunchDaemon), the runner account
with automatic login, the GitHub Actions runners, Xcode from a provided .xip,
weekly cache cleanup, and a read-only verify step. All settings live in
config.env; the machine address goes in the git-ignored config.local.env.

backup.sh pulls the runner's secrets (SSH host keys, Squid CA, runner
registrations, automatic login password) into the git-ignored secrets/
directory, and bootstrap.sh restores them instead of generating new ones.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-14 13:27:55 +02:00

8 lines
366 B
Plaintext

# Installed as /etc/sudoers.d/runner by remote/00-sudoers.sh.
#
# The admin account needs passwordless sudo so the setup can run unattended.
# The runner may only switch Xcode: UTM's build.yml runs
# "sudo xcode-select -s $HOST_XCODE_PATH" when the selected Xcode differs.
@ADMIN_USER@ ALL=(ALL) NOPASSWD: ALL
@RUNNER_USER@ ALL=(ALL) NOPASSWD: /usr/bin/xcode-select