Skip to content

Commit

Permalink
ci: linux-x64: ghc 9.0.2; avoid yesod/aeson breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed Feb 6, 2022
1 parent a25631c commit ba5b0e9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/linux-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ jobs:
container: alpine:edge
steps:

- name: Setup environment
# Borrowed from fossas/haskell-static-alpine, copied here for transparency
- name: Set up environment
run: |
apk --no-cache add binutils-gold curl gcc g++ git gmp-dev ncurses-dev ncurses-static libffi-dev make xz tar perl zlib-dev zlib-static
mkdir -p ~/.ghcup/bin && curl https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > ~/.ghcup/bin/ghcup && chmod +x ~/.ghcup/bin/ghcup
~/.ghcup/bin/ghcup install ghc 9.0.1 && ~/.ghcup/bin/ghcup set ghc 9.0.1 && ~/.ghcup/bin/ghcup install cabal
~/.ghcup/bin/ghcup install ghc 9.0.2 && ~/.ghcup/bin/ghcup set ghc 9.0.2 && ~/.ghcup/bin/ghcup install cabal
echo "$HOME/.ghcup/bin/" >> $GITHUB_PATH
- name: Check out
Expand All @@ -35,11 +34,11 @@ jobs:
with:
fetch-depth: 0

- name: Update cabal
- name: cabal update
run: cabal update

- name: Build on alpine
run: cabal build --enable-executable-static all
run: cabal build --enable-executable-static all --constraint 'aeson < 2' # avoid yesod/aeson breakage

- name: Extract and strip binaries
run: |
Expand Down

0 comments on commit ba5b0e9

Please sign in to comment.