From 11e5ed9e1c8a997077acc424330ac1bb9ae719be Mon Sep 17 00:00:00 2001 From: Vincenzo Pellegrini Date: Fri, 28 Jun 2024 09:20:35 +0200 Subject: [PATCH] Try with include --- .github/workflows/tests.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fe0acd9..86db21d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -361,18 +361,22 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest, macos-13] cache: [true, false] + include: + - os: ubuntu-latest + arch: X64 + - os: windows-latest + arch: X64 + - os: macos-latest + arch: ARM64 + - os: macos-13 + arch: X64 runs-on: ${{ matrix.os }} steps: - name: check_runner_arch shell: bash run: | echo "Runner architecture: ${{ runner.arch }}" - if [[ "${{ matrix.os }}" == "macos-latest" ]]; then - EXPECTED_ARCH="ARM64" - else - EXPECTED_ARCH="X64" - fi - if [[ "${{ runner.arch }}" != "${EXPECTED_ARCH}" ]]; then + if [[ "${{ runner.arch }}" != "${{ matrix.arch }}" ]]; then echo "##[error]Runner architecture does not match the expected one" exit 1 fi