Skip to content
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

how to use the new M1 GitHub Runners #62

Open
marten-seemann opened this issue Feb 3, 2024 · 1 comment
Open

how to use the new M1 GitHub Runners #62

marten-seemann opened this issue Feb 3, 2024 · 1 comment

Comments

@marten-seemann
Copy link

GitHub Actions now supports M1 macOS runners: https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/. However, it's not available under the macos-latest label until June this year: https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/

I'm wondering what the best way would be to specify macos-14. This currently isn't possible since we automatically append -latest:

runs-on: ${{ fromJSON(vars[format('UCI_GO_TEST_RUNNER_{0}', matrix.os)] || format('"{0}-latest"', matrix.os)) }}

Also keep in mind that some workflow have specified OS switches (if matrix.os == 'ubuntu'), so it would be unfortunate if matrix.os would be renamed. I think the cleanest solution would be to somehow do a map lookup that would resolve ubuntu to ubuntu-latest and macos to macos-14.

@galargh
Copy link
Member

galargh commented Mar 1, 2024

All you have to do is to set UCI_GO_TEST_RUNNER_macos to macos-14 in your repository config vars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants