Add more explicity run strategies in the runner matrix

This commit is contained in:
sabaimran 2024-11-28 19:31:34 -08:00
parent 80cd902c86
commit 2dfd163430

View file

@ -41,13 +41,20 @@ jobs:
strategy:
fail-fast: false
matrix:
image:
- 'local'
- 'cloud'
platform:
- linux/amd64
- linux/arm64
runs-on: ${{ matrix.platform == 'linux/arm64' && 'ubuntu-linux-arm64' || 'ubuntu-latest' }}
include:
- image: 'local'
platform: linux/amd64
runner: ubuntu-latest
- image: 'local'
platform: linux/arm64
runner: ubuntu-linux-arm64
- image: 'cloud'
platform: linux/amd64
runner: ubuntu-latest
- image: 'cloud'
platform: linux/arm64
runner: ubuntu-linux-arm64
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout Code
uses: actions/checkout@v3