Skip to content

Commit

Permalink
Install ghcup if it's not already present
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmayhew committed Apr 25, 2024
1 parent 7016005 commit c2ba935
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions haskell/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ outputs:
runs:
using: "composite"
steps:
- name: Install ghcup
shell: bash
run: |
if ! type ghcup &>/dev/null; then
curl -sSf https://get-ghcup.haskell.org |
BOOTSTRAP_HASKELL_NONINTERACTIVE=yes \
BOOTSTRAP_HASKELL_MINIMAL=yes \
bash
echo "PATH=$HOME/.ghcup/bin:$HOME/.cabal/bin:$PATH" >>"$GITHUB_ENV"
fi
- name: Setup GHC
if: inputs.ghc-version != ''
shell: bash
Expand Down

0 comments on commit c2ba935

Please sign in to comment.