Run same github action job on two different runners?

I’d like to run the same job in multiple environments. I have two different self hosted runners, each are linux but both have custom configured kernels. I’d like to run the same set of steps on each one in order to verify that my job will run correctly on each kernel.

Is this possible?

For example:

jobs:
  build-test:
    runs-on: self-hosted-1 AND self-hosted-2

I appologize, I made this prematurely. I discovered the solution is to do this:

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
        matrix:
            os: [self-hosted-1, self-hosted-2]
2 Likes