From 99f3a6852db5581d3d108f60ce29f9aeab768477 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 18 Aug 2022 03:20:23 +0100 Subject: [PATCH] dev: ci: binaries-linux-x64-static: simplify ghcup command --- .github/workflows/binaries-linux-x64-static.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/binaries-linux-x64-static.yml b/.github/workflows/binaries-linux-x64-static.yml index d4e02945e..322a61102 100644 --- a/.github/workflows/binaries-linux-x64-static.yml +++ b/.github/workflows/binaries-linux-x64-static.yml @@ -22,12 +22,12 @@ jobs: container: alpine:edge steps: - - name: Setup environment + - name: Install tools # Borrowed from fossas/haskell-static-alpine, copied here for transparency 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.2 && ~/.ghcup/bin/ghcup set ghc 9.0.2 && ~/.ghcup/bin/ghcup install cabal + ~/.ghcup/bin/ghcup install --set ghc 9.0.2 && ~/.ghcup/bin/ghcup install cabal echo "$HOME/.ghcup/bin/" >> $GITHUB_PATH - name: Check out