WolfireGames / overgrowth

Open Source codebase of the game Overgrowth by Wolfire Games LLC
Apache License 2.0
2.51k stars 260 forks source link

CI: Fix macOS build by working around bogus SDK detection #95

Closed akien-mga closed 1 year ago

akien-mga commented 1 year ago

For whatever reason CMake seems to infer "12.6" as SDK version, because the GitHub Action macOS runner is based on macOS 12.6. But that number doesn't match the SDK version, which should be 13.1 here.

This seems to be a long running issue with GitHub Actions' macOS runner: https://github.com/actions/runner-images/issues/2211

Though I can't tell if it's a CMake bug or a GitHub Actions image setup issue.

It's a bit sad to have to hardcode the value, and it means it might break again next time GitHub Actions update their macos-12 image, if they remove the 13.1 SDK. If anyone feels like digging into it further, feel free to. :)