Skip to content

Commit

Permalink
Adjust GitHub Actions workflow to support macos-14 (Arm64) runners
Browse files Browse the repository at this point in the history
  • Loading branch information
minoki committed May 19, 2024
1 parent f893aae commit e0f9345
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
ghc: ['8.6.5', '8.8.4', '8.10.7', '9.0.2', '9.2.8', '9.4', '9.6', '9.8', '9.10']
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
flags: ['', '--flags "fma3 f16c"', '--flags float128']
exclude:
# float128-0.1 doesn't support recent GHC (should we try --allow-newer?)
Expand All @@ -17,13 +17,27 @@ jobs:
flags: '--flags float128'
- ghc: '9.10'
flags: '--flags float128'
- os: macos-latest
- os: macos-13
flags: '--flags float128'
- os: macos-14
flags: '--flags float128'
- os: windows-latest
flags: '--flags float128'
# Fragile
- os: macos-latest
- os: macos-13
flags: '--flags "fma3 f16c"'
- os: macos-14
flags: '--flags "fma3 f16c"' # Makes no sense on Arm64
# macos-14 (Arm64) doesn't support older GHC
# 8.10.7 and 9.0.2 are excluded because haskell-actions/setup doesn't install LLVM
- os: macos-14
ghc: '8.6.5'
- os: macos-14
ghc: '8.8.4'
- os: macos-14
ghc: '8.10.7'
- os: macos-14
ghc: '9.0.2'
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -57,7 +71,7 @@ jobs:
strategy:
matrix:
ghc: ['8.6.5', '8.8.4', '8.10.7', '9.0.2', '9.2.8', '9.4', '9.6', '9.8', '9.10']
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
flags: ['', '--flags x87-long-double']
exclude:
- ghc: '9.4'
Expand All @@ -68,6 +82,19 @@ jobs:
flags: '--flags x87-long-double'
- ghc: '9.10'
flags: '--flags x87-long-double'
# macos-14 (Arm64) doesn't support older GHC
# 8.10.7 and 9.0.2 are excluded because haskell-actions/setup doesn't install LLVM
- os: macos-14
ghc: '8.6.5'
- os: macos-14
ghc: '8.8.4'
- os: macos-14
ghc: '8.10.7'
- os: macos-14
ghc: '9.0.2'
# macos-14 (Arm64) doesn't support x87-long-double
- os: macos-14
flags: '--flags x87-long-double'
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit e0f9345

Please sign in to comment.