Skip to content

Commit

Permalink
Merge pull request #96 from tbidne/ci-ghc
Browse files Browse the repository at this point in the history
CI: Fix OSX, remove windows, add recent GHCs
  • Loading branch information
vshabanov authored Aug 29, 2024
2 parents 57b22b1 + a57e4eb commit d181703
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 5 deletions.
43 changes: 39 additions & 4 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,39 @@ jobs:
# number instances is a good way to trigger flaky build failures
n: [1]

ghc: ["8.10.7"]
os: [ubuntu-latest, macos-latest, windows-latest]

ghc:
- "8.0.2"
- "8.2.2"
- "8.4.4"
- "8.6.5"
- "8.8.4"
- "8.10.7"
- "9.0.2"
- "9.2.8"
- "9.4.8"
- "9.6.6"
- "9.8.2"
- "9.10.1"
# FIXME: Add windows-latest back to CI once it is passing.
os: [ubuntu-latest, macos-latest]

# Action fails to install GHC < 8.10 on OSX with a generic error
# messsage:
#
# Error: All install methods for ghc 8.0.2 failed
#
# On the other hand, 8.10 and 9.0 fail due to LLVM:
#
# Warning: Couldn't figure out LLVM version!
# Make sure you have installed LLVM between [9 and 13)
exclude:
- {ghc: "8.0.2", os: "macos-latest"}
- {ghc: "8.2.2", os: "macos-latest"}
- {ghc: "8.4.4", os: "macos-latest"}
- {ghc: "8.6.5", os: "macos-latest"}
- {ghc: "8.8.4", os: "macos-latest"}
- {ghc: "8.10.7", os: "macos-latest"}
- {ghc: "9.0.2", os: "macos-latest"}
env:
# OpenSSL is installed in a non-standard location in MacOS. See
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-latest-Readme.md
Expand All @@ -27,6 +57,10 @@ jobs:
LD_LIBRARY_PATH: ${{ (matrix.os != 'windows-latest' && '/usr/local/lib') || '' }}

steps:
- uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}

- name: "WIN: Install System Dependencies via pacman (msys2)"
if: runner.os == 'Windows'
run: |
Expand All @@ -45,7 +79,8 @@ jobs:
# this seems to break something. It _must_ come after the pacman setup
# above. It appears as if PATHEXT is set _after_ ghcup install ghc/cabal, and
# as such we'd need pacman.exe instead.
- name: Setup Haskell
- name: "WIN: Setup Haskell"
if: runner.os == 'Windows'
run: |
# Use GHCUP to manage ghc/cabal
ghcup install ghc --set ${{ matrix.ghc }}
Expand Down
13 changes: 12 additions & 1 deletion HsOpenSSL.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,18 @@ Bug-Reports: https://github.com/haskell-cryptography/HsOpenSSL/issues
Category: Cryptography
Cabal-Version: 1.12
Tested-With:
GHC==8.8.1, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3
GHC ==8.0.2
|| ==8.2.2
|| ==8.4.4
|| ==8.6.5
|| ==8.8.4
|| ==8.10.7
|| ==9.0.2
|| ==9.2.8
|| ==9.4.8
|| ==9.6.6
|| ==9.8.1
|| ==9.10.1
Build-Type: Custom
Extra-Source-Files:
AUTHORS
Expand Down

0 comments on commit d181703

Please sign in to comment.