https://github.com/sickcodes/Docker-OSX seems more established. I used it a while back when I was in a country where that was legal. These days I just use GitHub Actions instead.
Creating a separate comment for this idea, but would virtualizing other versions of MacOS/iOS on say a Mac Mini so you can do multiple versions (And maybe iOS, by extension) and such in parallel would ostensibly be legal
As long as you're running Asahi Linux as your Host OS