Skip to content

Commit

Permalink
Simple bash ftw
Browse files Browse the repository at this point in the history
  • Loading branch information
friedbyalice authored Jun 28, 2024
1 parent cb4779a commit 0b0da3c
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -360,24 +360,19 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
arch: [X64, ARM64]
cache: [true, false]
exclude:
- os: ubuntu-latest
arch: ARM64
- os: windows-latest
arch: ARM64
- os: macos-latest
arch: X64
- os: macos-13
arch: ARM64
runs-on: ${{ matrix.os }}
steps:
- name: check_runner_arch
shell: bash
run: |
echo "Runner architecture: ${{ runner.arch }}"
if [[ "${{ runner.arch }}" != "${{ matrix.arch }}" ]]; then
if [[ "${{ matrix.os }}" == "macos-latest" ]]; then
EXPECTED_ARCH="ARM64"
else
EXPECTED_ARCH="X64"
fi
if [[ "${{ runner.arch }}" != "${EXPECTED_ARCH}" ]]; then
echo "##[error]Runner architecture does not match the expected one"
exit 1
fi
Expand Down

0 comments on commit 0b0da3c

Please sign in to comment.