Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(release): install Xcode Metal toolchain (#6564)

Ezra Ellette73bdb6533652
diff --git a/infra/release-mac-runner/README.md b/infra/release-mac-runner/README.md
index a737ef58f..67d29b9fd 100644
--- a/infra/release-mac-runner/README.md
+++ b/infra/release-mac-runner/README.md
@@ -34,6 +34,8 @@ Session Manager as `ec2-user` and install the latest stable Xcode:
```bash
xcodes install --latest --experimental-unxip
sudo xcodebuild -license accept
+xcodebuild -runFirstLaunch
+xcodebuild -downloadComponent MetalToolchain
xcodebuild -version
```
diff --git a/infra/release-mac-runner/configure-runner.sh b/infra/release-mac-runner/configure-runner.sh
index 2f44d2ac9..b71e33dd2 100755
--- a/infra/release-mac-runner/configure-runner.sh
+++ b/infra/release-mac-runner/configure-runner.sh
@@ -40,7 +40,7 @@ COMMAND_ID=$(aws ssm send-command \
--region "$REGION" \
--instance-ids "$INSTANCE_ID" \
--document-name AWS-RunShellScript \
- --parameters "commands=[\"sudo -u ec2-user -H /bin/bash -lc 'export PATH=/opt/homebrew/bin:/Users/ec2-user/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin; cd /Users/ec2-user/actions-runner && ./config.sh --unattended --replace --url https://github.com/$REPOSITORY --token $REGISTRATION_TOKEN --name $RUNNER_NAME --labels $RUNNER_LABEL --work /Users/ec2-user/screenpipe-cache/work'\",\"sudo -u ec2-user -H /bin/bash -lc 'cd /Users/ec2-user/actions-runner && rm -f /Users/ec2-user/Library/LaunchAgents/$SERVICE_LABEL.plist .service runsvc.sh && ./svc.sh install'\",\"plutil -insert EnvironmentVariables.PATH -string '/opt/homebrew/bin:/Users/ec2-user/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' /Users/ec2-user/Library/LaunchAgents/$SERVICE_LABEL.plist\",\"launchctl bootout system/$SERVICE_LABEL 2>/dev/null || true\",\"cp /Users/ec2-user/Library/LaunchAgents/$SERVICE_LABEL.plist /Library/LaunchDaemons/$SERVICE_LABEL.plist\",\"chown root:wheel /Library/LaunchDaemons/$SERVICE_LABEL.plist\",\"chmod 0644 /Library/LaunchDaemons/$SERVICE_LABEL.plist\",\"launchctl bootstrap system /Library/LaunchDaemons/$SERVICE_LABEL.plist || { sleep 2; launchctl bootstrap system /Library/LaunchDaemons/$SERVICE_LABEL.plist; }\"]" \
+ --parameters "commands=[\"xcodebuild -runFirstLaunch\",\"xcodebuild -downloadComponent MetalToolchain\",\"sudo -u ec2-user -H /bin/bash -lc 'export PATH=/opt/homebrew/bin:/Users/ec2-user/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin; cd /Users/ec2-user/actions-runner && ./config.sh --unattended --replace --url https://github.com/$REPOSITORY --token $REGISTRATION_TOKEN --name $RUNNER_NAME --labels $RUNNER_LABEL --work /Users/ec2-user/screenpipe-cache/work'\",\"sudo -u ec2-user -H /bin/bash -lc 'cd /Users/ec2-user/actions-runner && rm -f /Users/ec2-user/Library/LaunchAgents/$SERVICE_LABEL.plist .service runsvc.sh && ./svc.sh install'\",\"plutil -insert EnvironmentVariables.PATH -string '/opt/homebrew/bin:/Users/ec2-user/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' /Users/ec2-user/Library/LaunchAgents/$SERVICE_LABEL.plist\",\"launchctl bootout system/$SERVICE_LABEL 2>/dev/null || true\",\"cp /Users/ec2-user/Library/LaunchAgents/$SERVICE_LABEL.plist /Library/LaunchDaemons/$SERVICE_LABEL.plist\",\"chown root:wheel /Library/LaunchDaemons/$SERVICE_LABEL.plist\",\"chmod 0644 /Library/LaunchDaemons/$SERVICE_LABEL.plist\",\"launchctl bootstrap system /Library/LaunchDaemons/$SERVICE_LABEL.plist || { sleep 2; launchctl bootstrap system /Library/LaunchDaemons/$SERVICE_LABEL.plist; }\"]" \
--query 'Command.CommandId' \
--output text)