Backport of "ci: Install cmake using pip3 on macOS instead of building it" into 1.20
Backport of !931 (merged) "ci: Install cmake using pip3 on macOS instead of building it".
Commits:
- 51881d45 ci: Install cmake using pip3 on macOS instead of building it