Skip to content

Commit

Permalink
Put GHC and Cabal into path in integration script.
Browse files Browse the repository at this point in the history
We need this to happen because our `examples` test suite needs access to
the built executable.
  • Loading branch information
kindaro committed Apr 10, 2024
1 parent 761b2d2 commit c588b0e
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
# This GitHub workflow config has been generated by a script via
#
# haskell-ci 'github' '--no-cabal-check' '--installed' '-all' 'cabal-prettify.cabal'
#
# To regenerate the script (for example after adjusting tested-with) run
#
# haskell-ci regenerate
#
# For more information, see https://github.com/haskell-CI/haskell-ci
#
# version: 0.16.6
#
# REGENDATA ("0.16.6",["github","--no-cabal-check","--installed","-all","cabal-prettify.cabal"])
#
name: Haskell-CI
on:
- push
Expand Down Expand Up @@ -48,6 +34,7 @@ jobs:
curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
chmod a+x "$HOME/.ghcup/bin/ghcup"
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
"$HOME/.ghcup/bin/ghcup" set ghc "$HCVER"
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
env:
HCKIND: ${{ matrix.compilerKind }}
Expand All @@ -56,6 +43,7 @@ jobs:
- name: Set PATH and environment variables
run: |
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
echo "$HOME/.ghcup/bin" >> $GITHUB_PATH
echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
Expand Down

0 comments on commit c588b0e

Please sign in to comment.