To create an ephemeral (docker-like) MacOS VM on a Mac with full performance and access (e.g. GPU) you have to use a virtualization API provided by Apple.
For most CI use, you can choose between:
Anka, a "contact-us for pricing" closed-source projet, where you have to pay expensive license (easy 3000 USD/yr per machine)
or
tart, which is a lightweight wrapper around the official Apple API.
But you have to know that on MacOS, there is an artificial limit of 2 VMs per Mac... but well:
Ability to virtualize on Apple devices and linux with GPUs https://github.com/scipy/scipy/issues/24990
To create an ephemeral (docker-like) MacOS VM on a Mac with full performance and access (e.g. GPU) you have to use a virtualization API provided by Apple.
For most CI use, you can choose between:
or But you have to know that on MacOS, there is an artificial limit of 2 VMs per Mac... but well:https://github.com/cirruslabs/orchard/commit/3cfa2445500f45f...
With https://khronokernel.com/macos/2023/08/08/AS-VM.html
Some people might find it very attractive:
Even without bypassing the limit it is great actuallyBetter UX than their competitors and support for many different images.