File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,14 +106,20 @@ jobs:
106106 done
107107 echo "CI_BENCHMARKS=$CI_BENCHMARKS" >> $GITHUB_ENV
108108
109+ # Use a sane PATH, especially to pick the right GHC
110+ - name : Set PATH to add .local and .ghcup
111+ run : echo "$HOME/.local/bin:$HOME/.ghcup/bin:/bin:/usr/bin" > $GITHUB_PATH
112+
109113 - name : Download ghc
110114 run : |
111115 if ! ghc --version 2>/dev/null | grep -q "$GHCVER"
112116 then
113117 curl -sL -o ./ghcup https://downloads.haskell.org/~ghcup/$GHCUP_VERSION/x86_64-linux-ghcup-$GHCUP_VERSION
114118 chmod +x ./ghcup
119+ export GHCUP_INSTALL_BASE_PREFIX=$HOME
115120 ./ghcup install ghc $GHCVER
116121 ./ghcup set ghc $GHCVER
122+ ./ghcup install cabal
117123 fi
118124 # XXX update only if not present
119125 cabal update
@@ -147,7 +153,7 @@ jobs:
147153 - name : Checkout the PR branch
148154 uses : actions/checkout@v4
149155 with :
150- # preserve the "charts" directory created by bench-runner
156+ # preserve bench-runner and the "charts" directory created by bench-runner
151157 clean : false
152158
153159 - name : Run benchmarks and append
You can’t perform that action at this time.
0 commit comments