Skip to content

Commit f3f13fd

Browse files
committed
The runner context doesn't exist outside the steps section
1 parent 9ee945e commit f3f13fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
test:
3131
needs: pre_job
3232
runs-on: ${{ matrix.os }}
33-
env:
34-
XDG_CACHE_HOME: ${{ runner.temp }}/cache
3533
strategy:
3634
fail-fast: true
3735
matrix:
@@ -141,8 +139,9 @@ jobs:
141139
src/**/*.hs exe/*.hs
142140
143141
# this is only safe if the test environment is isolated
144-
- name: clean ide cache
142+
- name: setup ide cache
145143
run: |
144+
export XDG_CACHE_HOME=$RUNNER_TEMP/cache
146145
rm -rf ~/.cache/ghcide
147146
rm -rf ~/.cache/hie-bios
148147
rm -rf $XDG_CACHE_HOME/ghcide

0 commit comments

Comments
 (0)