-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(ci): upgrade macOS runner to M1 & macOS 14 #15367
Conversation
861038b
to
8d59f65
Compare
macos the fastest now as I silently suspected it would be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me and appears to run quite well based on scan of the CI log
Nice!
This comment was marked as outdated.
This comment was marked as outdated.
8d59f65
to
7d5cd72
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Emulator tests blocked on:
|
@mikehardy Would you accept this PR if:
|
yeah - getting the unit tests going on apple silicon will speed them up, that's worthwhile future investigation may be to revive the old emulator test workflow we had that did nested virt on ubuntu to get the emulator to run there and convert tests emulator back to ubuntu ? but keeping it on macos-current is fine for now, incremental steps are positive steps |
7d5cd72
to
8dfda6c
Compare
@mikehardy marking this as being up for second review given your comment. Low priority to check you're happy with the comment on |
Maintainers: this requires an update to branch protection rules before merge. https://github.com/ankidroid/Anki-Android/settings/branch_protection_rules/17281133 Please also see the following, which should be merged at a similar time, as this fixes a typo in the above |
8dfda6c
to
2577222
Compare
This is a beta, we are currently on `macos-12` https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/ > The macos-latest workflow label currently uses the macOS 12 runner image. > `macos-14` [beta] https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories This reduces the available RAM from 14 to 7GB
2577222
to
671e84f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yolo merge, but honestly I don't think it can be improved, it's a simple switch at this point
The main branch protection rules have potentially "unstable" names, in that the version of the macos/linux/ubuntu runner is currently included in the name, implying that if we change the name from the mostly stable "latest" (e.g., "macos-latest") to a specific version (e.g., "macos-14") the branch protection rules must be updated I believe there is a way to specify the name programmatically, such that inside the matrix you may expect the context and get the current matrix expansion, then use an expression (like, with |
Purpose / Description
This is a beta, we are currently on
macos-12
https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/
https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
This reduces the available RAM from 14 to 7GB
How Has This Been Tested?
This is the test
Learning (optional, can help others)
https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/
https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
Checklist