Skip to content

Commit 5ae2e5e

Browse files
Fix caching of ghcup in perf comparison CI
1 parent 67589c9 commit 5ae2e5e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/regression-check.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)