According to https://github.blog/changelog/2024-05-20-actions-upcoming-changes-to-github-hosted-macos-runners/ the macOS-11 image the CI is using will soon be deprecated.
This can be moved to macOS-13 for an Intel based test, but maybe it is interesting to also add macOS-latest for an M1-based test? This could also run the actual tests rather than testing build only?