Skip to content

Commit

Permalink
Use cabal-install-3.4.0.0-rc4 on POSIX systems
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Dec 15, 2020
1 parent 3548716 commit be3e7d8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,18 @@ jobs:
flags: -external-libsodium-vrf
EOF
- name: Select optimal cabal version
run: |
case "$OS" in
Windows_NT) echo "CABAL_VERSION=3.2.0.0" >> $GITHUB_ENV;;
*) echo "CABAL_VERSION=3.4.0.0-rc4" >> $GITHUB_ENV;;
esac
- uses: actions/setup-haskell@v1
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.2.0.0'
cabal-version: ${{ env.CABAL_VERSION }}

- name: Patch GHC 8.10.2 linker
if: matrix.os == 'windows-latest' && matrix.ghc == '8.10.2'
Expand Down Expand Up @@ -131,8 +138,7 @@ jobs:
cat ./cabal.project.local.ci.windows >> ./cabal.project.local
cat ./cabal.project.local
# Build dependencies
- name: Build dependencies
- name: Install happy
run: |
cabal --builddir="$CABAL_BUILDDIR" install happy --install-method=copy
Expand Down

0 comments on commit be3e7d8

Please sign in to comment.