Skip to content

Commit

Permalink
[hls-graph] clean up databaseDirtySet (#2294)
Browse files Browse the repository at this point in the history
* attempt to fix hiedb lock errors

it looks like the test runner has a preexisting process locking the hiedb

* Move ghcide cache to the tmp folder

* Use ${{ runner.temp }}

* clean up the hie-bios cache too

* The runner context doesn't exist outside the steps section
  • Loading branch information
pepeiborra authored Oct 26, 2021
1 parent 44016a7 commit 2474e7c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ jobs:
sed -i.bak -e 's/Paths_haskell_language_server/Paths_hls/g' \
src/**/*.hs exe/*.hs
# this is only safe if the test environment is isolated
- name: setup ide cache
run: |
export XDG_CACHE_HOME=$RUNNER_TEMP/cache
rm -rf ~/.cache/ghcide
rm -rf ~/.cache/hie-bios
rm -rf $XDG_CACHE_HOME/ghcide
rm -rf $XDG_CACHE_HOME/hie-bios
- if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
name: Build
# Retry it three times to workaround compiler segfaults in windows
Expand Down

0 comments on commit 2474e7c

Please sign in to comment.