chore: Fix macOS CI builds. #437
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Recently, macOS CI builds started failing, for all macOS versions that we target.
See issue #436
This seems likely to be caused by a recent change to GitHub's runner images for macOS actions/runner-images#12791 and there is an open issue related to cmake failing to install on actions that use those images actions/runner-images#12912
Solution
I was able to take the blame off any recent OpenMalaria changes by reproducing the issue with the commit tagged
schema-48.0, which we know to have passed CI.Updating the relevant GitHub Actions workflow config file to no longer install certain packages stops the relevant builds failing.
To some extent, this solution is a workaround, and I think it's better to have this workaround now than have failing CI until GitHub might fix the issue.
Testing
As can be seen in the CI checks on this PR, the relevant builds now pass (green ticks).
Looking more closely at the logs for those builds, it is clear that there are still some warnings and one error. I suggest we live with them. They do not indicate any relevant defect in the macOS environments we're using for testing OpenMalaria.
macOS 14 and macOS 15
macOS 13