[Haskell-cafe] caching ~/.cabal with github actions on windows

Ben Franksen ben.franksen at online.de
Fri Nov 13 11:32:56 UTC 2020


Am 13.11.20 um 11:54 schrieb Oleg Grenrus:
> cabal-install doesn't use ~/.cabal on Windows.
> 
> See
> https://hackage.haskell.org/package/directory-1.3.6.1/docs/System-Directory.html#v:getAppUserDataDirectory

Thanks. I already suspected that was causing the problem, so I tried to
set CABAL_DIR to a fixed location (and cache that instead):

    env:
      CABAL_DIR: ${{ github.workspace }}/dot-cabal

Again, this works fine on Linux and MacOS but not on Windows.

Cheers
Ben



More information about the Haskell-Cafe mailing list