Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 2

Self-hosted runner on mac seems to run jobs for tagged for ubuntu os

Hello,

I have two self-hosted runners, one on mac osx,  one one ubuntu.  Atm,  only the mac runner is online.

Whenever i push the yml to github,  the mac runner will run two jobs, once for ubuntu then for macos.

Shouldn't it only run the macos? 
here is my yaml config

....
on: 
  push:
    branches: my-dev-branch
jobs:
  build:
    runs-on: [self-hosted]
    strategy:
      matrix:
        os: [macos, ubuntu]
.....

much obliged

 

1 Reply
Highlighted
Copilot Lvl 3
Message 2 of 2

Re: Self-hosted runner on mac seems to run jobs for tagged for ubuntu os

Nvm,

I forgot to change to:

runs-on: ${{ matrix.os }}