gitlab-ci: update macOS jobs to use Xcode 13.3
Also backport !6992 (merged), and commit 183b6bbf from !7119 (merged) for the CMake 3.21 and 3.22 branches so we can test them with Xcode 13.3.
Backport: release
Also backport !6992 (merged), and commit 183b6bbf from !7119 (merged) for the CMake 3.21 and 3.22 branches so we can test them with Xcode 13.3.
Backport: release