dev: ci: binaries-mac-x64: try ghc from haskell.org

This commit is contained in:
Simon Michael 2022-08-18 03:16:47 +01:00
parent 4c041b73b7
commit 81ef3b38b4

View File

@ -117,11 +117,26 @@ jobs:
stack --version
if: env.CONTINUE
- name: Install GHC
env:
stack: ${{ matrix.plan.stack }}
# - name: Install GHC (with stack)
# env:
# stack: ${{ matrix.plan.stack }}
# run: |
# $stack setup --install-ghc
# if: env.CONTINUE
# stack's ghc 9.2.4 failing with InvalidAbsFile "/Users/runner/.stack/programs/x86_64-osx/ghc-9.2.3/lib/ghc-9.2.3/lib/../lib/x86_64-osx-ghc-9.2.3/rts-1.0.2/include/ghcversion.h"
# - name: Install GHC (with ghcup)
# run: |
# mkdir -p ~/.ghcup/bin && curl -sL https://downloads.haskell.org/~ghcup/x86_64-apple-darwin-ghcup > ~/.ghcup/bin/ghcup && chmod +x ~/.ghcup/bin/ghcup
# ~/.ghcup/bin/ghcup install --set ghc 9.2.4 # && ~/.ghcup/bin/ghcup install stack
# echo "$HOME/.ghcup/bin/" >> $GITHUB_PATH
# if: env.CONTINUE
- name: Install GHC (from haskell.org)
run: |
$stack setup --install-ghc
curl -sL https://downloads.haskell.org/~ghc/9.2.4/ghc-9.2.4-x86_64-apple-darwin.tar.xz | tar xj && cd ghc-9.2.4-x86_64-apple-darwin && ./configure && make install
ghc --version
mkdir -p ~/.stack && printf "system-ghc: true\ninstall-ghc: false\n" >>~/.stack/config.yaml
if: env.CONTINUE
- name: Install haskell deps