Fix conda cmake setup for macos x86-64 (#84682)
The latest conda setup with cache causes package conflicts for macos x86-64 with cmake-3.19, for example https://github.com/pytorch/pytorch/runs/8237917073. It's near impossible to understand the cryptic package conflicts errors from conda. `cmake=3.22.1` is the same cmake version used in macos arm64, which doesn't have the issue.
At the moment, the mac x86-64 build and test jobs success because they are reinstalled with stock conda from miniconda installation script every time and don't use any cache.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/84682
Approved by: https://github.com/ZainRizvi