As of today, macos-latest runs on an M1, therefore downgrade and pin version to lowest version available which is macos-12:
macOS 3 14 GB 14 GB macos-12 or macos-11 The macos-11 label has been deprecated and will no longer be available after 6/28/2024.
macOS 4 14 GB 14 GB macos-13 N/A
macOS 3 (M1) 7 GB 14 GB macos-latest or macos-14 The macos-latest label currently uses the macOS 14 runner image.
As of today, macos-latest runs on an M1, therefore downgrade and pin version to lowest version available which is macos-12:
https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners