Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release script: Sandbox macOS builds #5790

Open
kit-ty-kate opened this issue Jan 19, 2024 · 0 comments
Open

Release script: Sandbox macOS builds #5790

kit-ty-kate opened this issue Jan 19, 2024 · 0 comments

Comments

@kit-ty-kate
Copy link
Member

Currently the macOS builds are the only one that are not sandboxed and are built on the host, one solution that I’ve tested would be to use https://github.com/cirruslabs/tart/ which provides ready macos images ran using Apple’s Virtualization.Framework.

Build steps tested:

  • brew install cirruslabs/cli/tart
  • tart clone ghcr.io/cirruslabs/macos-sonoma-xcode:latest macos-14 (sources for the base images are located at https://github.com/cirruslabs/macos-image-templates)
  • tart run macos-14
  • scp -o StrictHostKeyChecking=no opam-full-<version>.tar.gz admin@$(tart ip macos-14): (password: admin)
  • untar, cd, make cold

The major inconvenient is that the base image is 54GB (110GB if we do a copy before a run for reproducibility) which adds to the already required 60GB added by the Windows image in #5789. I personally do not have the necessary space to store this. Even the vanilla image with nothing installed would require 55GB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant