Skip to content

Commit 225b5ae

Browse files
committed
The runner context doesn't exist outside the steps section
1 parent c5240fa commit 225b5ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
needs: pre_job
3232
runs-on: ${{ matrix.os }}
3333
env:
34-
XDG_CACHE_HOME: ${{ runner.temp }}/cache
3534
strategy:
3635
fail-fast: true
3736
matrix:
@@ -141,8 +140,9 @@ jobs:
141140
src/**/*.hs exe/*.hs
142141
143142
# this is only safe if the test environment is isolated
144-
- name: clean ide cache
143+
- name: setup ide cache
145144
run: |
145+
export XDG_CACHE_HOME=$RUNNER_TEMP/cache
146146
rm -rf ~/.cache/ghcide
147147
rm -rf ~/.cache/hie-bios
148148
rm -rf $XDG_CACHE_HOME/ghcide

0 commit comments

Comments
 (0)