runner labels

macOS

The runner's operating system, added by GitHub's runner on every Mac. Ask for it to keep a job off any Linux or Windows self-hosted runners you also have, for example runs-on: [self-hosted, macOS].

macOS Linux Windows runs-on: [self-hosted, macOS]

Example

jobs:
  test:
    runs-on: [self-hosted, macOS]
    steps:
      - uses: actions/checkout@v4
      - run: sw_vers && swift test