From 81ef3b38b41cd88b658f87d14e48f3b097bb400c Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 18 Aug 2022 03:16:47 +0100 Subject: [PATCH] dev: ci: binaries-mac-x64: try ghc from haskell.org --- .github/workflows/binaries-mac-x64.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/binaries-mac-x64.yml b/.github/workflows/binaries-mac-x64.yml index b18913219..e01e06a09 100644 --- a/.github/workflows/binaries-mac-x64.yml +++ b/.github/workflows/binaries-mac-x64.yml @@ -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