Doesn't github actions support xcode builds for macOS and iOS?
There are also several macOS cloud service providers - including Amazon/AWS, which even has M1 instances.
I expect the secret that makes it easy and license-compliant is running on Apple hardware (presumably Mac mini.)