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