Skip to content

Commit

Permalink
Try with include
Browse files Browse the repository at this point in the history
  • Loading branch information
friedbyalice authored Jun 28, 2024
1 parent 0b0da3c commit 11e5ed9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11e5ed9

Please sign in to comment.