Skip to content

Commit

Permalink
Merge pull request #315 from sheaf/arm-ci
Browse files Browse the repository at this point in the history
Fix CI on MacOS AArch64 runners
  • Loading branch information
bgamari authored Apr 26, 2024
2 parents cc69f1a + bd48da0 commit 9296a92
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ on:

jobs:
build:
name: GHC ${{ matrix.ghc-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
name: GHC ${{ matrix.ghc-version }} on ${{ matrix.platform.arch }} ${{ matrix.platform.os }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
platform:
- { os: ubuntu-latest, arch: x64 }
- { os: macos-13, arch: x64 }
- { os: macos-14, arch: arm }
- { os: windows-latest, arch: x64 }
ghc-version:
- 'latest'
- '9.8'
Expand All @@ -29,7 +33,29 @@ jobs:

exclude:
# Exclude GHC 8.2 on Windows (GHC bug: undefined reference to `__stdio_common_vswprintf_s')
- os: windows-latest
- platform:
os: windows-latest
ghc-version: '8.2'

# Only allow ARM jobs with GHC >= 9.2
# (It's tedious to not be able to use matrix.ghc-version >= 9.2 as a conditional here.)
- platform:
arch: arm
ghc-version: '9.0'
- platform:
arch: arm
ghc-version: '8.10'
- platform:
arch: arm
ghc-version: '8.8'
- platform:
arch: arm
ghc-version: '8.6'
- platform:
arch: arm
ghc-version: '8.4'
- platform:
arch: arm
ghc-version: '8.2'

steps:
Expand All @@ -44,6 +70,10 @@ jobs:
cabal-version: 'latest'
cabal-update: true

- name: Set up autotools (Darwin)
if: ${{ runner.os == 'macOS' }}
run: brew install autoconf

- name: Set up autotools (Windows)
if: ${{ runner.os == 'Windows' }}
uses: msys2/setup-msys2@v2
Expand Down

0 comments on commit 9296a92

Please sign in to comment.