Skip to content

how to use the new M1 GitHub Runners #62

Description

@marten-seemann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions