This PR switches the macOS native job from Ventura to Monterey, which allows to support Valgrind.
Both runners–macos-12
and macos-13
–have the same clang compilers installed:
- https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
- https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md
But Valgrind works fine on macOS Monterey, but not on Ventura.
See: #1392 (comment).
The Homebrew’s Valgrind package is cached once it has been built (as it was before #1152). Therefore, the actions/cache@*
action is needed to be added to the list of the allowed actions.
By the way, this solves #1151.