Migrate x86 trunk build/test to macos12
This will enable MPS building but will NOT test mps
as the runner do not have AMD gpus
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77645
Approved by: https://github.com/malfet, https://github.com/seemethere