Skip to content

Commit

Permalink
Merge #3911
Browse files Browse the repository at this point in the history
3911: Fix GH Actions Windows CI caching r=amesgen a=amesgen

# Description

In #3901, the store path used for caching was `C:\cabal\config\store` instead of the correct `C:\cabal\store`. This was due a mix up of the path separators (`/` vs `\`).

Also, we bump the cache version as we want to override the previous (empty) cache.

For evidence that this works, see [this run](https://github.com/input-output-hk/ouroboros-network/runs/7417675263?check_suite_focus=true), in particular how the `Build dependencies` and the `Build projects [build]` finish almost instantly.



Co-authored-by: Alexander Esgen <[email protected]>
  • Loading branch information
2 people authored and nfrisby committed Jul 21, 2022
1 parent c0fff78 commit e51cbdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ jobs:
ghc --version
cabal --version
echo "::set-output name=cabal-store::$(cabal --help | tail -1 | tr -d ' ' | rev | cut -d '/' -f2- | rev)\\store"
echo "::set-output name=cabal-store::$(dirname $(cabal --help | tail -1 | tr -d ' '))\\store"
- name: Set cache version
run: echo "CACHE_VERSION=9w76Z3Q" >> $GITHUB_ENV
run: echo "CACHE_VERSION=20220719" >> $GITHUB_ENV

- name: "LINUX: Install build environment (apt-get)"
if: runner.os == 'Linux'
Expand Down

0 comments on commit e51cbdd

Please sign in to comment.