Skip to content

Commit

Permalink
Use haskell setup action for ghc 8.0.2 and 8.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyaov committed Oct 26, 2024
1 parent a12370d commit 83d3aee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@ jobs:
include:

- name: 8.0.2
use_haskell_actions: true
ghc_version: 8.0.2
runner: ubuntu-latest
cabal_version: 3.2.0.0
pack_options: DISABLE_TEST=y
ignore_error: false

- name: 8.2.2
use_haskell_actions: true
ghc_version: 8.2.2
runner: ubuntu-latest
cabal_version: 3.2.0.0
Expand Down Expand Up @@ -172,6 +174,19 @@ jobs:
steps:
- uses: actions/checkout@v4

# This is only required for 8.0.2 and 8.2.2
# Fails with error:
# /usr/local/.ghcup/tmp/ghcup-05bf9c49ec7cd38c/usr/local/.ghcup/ghc/8.0.2/lib/ghc-8.0.2/bin/ghc-pkg: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
# This is probably because the ghc installer in the older ghc-s probably look for libtinfo.so.5 and not libtinfo.so
# If that is the case "sudo ln libtinfo.so libtinfo.so.5" should fix the problem
# But we can't sudo on the CI so this is the roundabout way to get the CIs working with minimal effort
- uses: haskell-actions/setup@v2
if: ${{ matrix.use_haskell_actions }}
with:
ghc-version: ${{ matrix.ghc_version }}
ghcup-release-channel: ${{ matrix.ghcup_release_channel }}
cabal-version: ${{ matrix.cabal_version }}

- uses: actions/cache@v4
name: Cache ~/.cabal
with:
Expand Down

0 comments on commit 83d3aee

Please sign in to comment.