Migrate cross compilation trunk test to use macos12 to build MPS
Note that the generated binaries are not tested yet
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77647
Approved by: https://github.com/malfet, https://github.com/seemethere