Adapt existing Haskell Stack example for Windows#819
Conversation
|
@mpilgrem |
|
@Phantsure, if environment variable |
| key: ${{ runner.os }}-stack-global-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-stack-global- | ||
| - uses: actions/cache@v3 |
There was a problem hiding this comment.
Can we make this separate for windows and unix systems, like done here?
There was a problem hiding this comment.
@Phantsure, can I double-check the intended URL behind the 'here'?
There was a problem hiding this comment.
There was a problem hiding this comment.
@Phantsure, I'll revise the PR to reflect that.
The default `STACK_ROOT` is `~/.stack` only on Unix-like operating systems. On Windows, the default is `%APPDATA%/stack` (usually `%HOME%\AppData\Roaming\stack`). On Unix-like OSs, Stack stores GHC and other tools in a `programs` directory in the `STACK_ROOT`. On Windows, Stack stores those tools and MSYS2 in `%LOCALAPPDATA%\Programs\stack` (usually `%HOME%\AppData\Local\Programs\stack`).
9295c91 to
d25c51b
Compare
The default
STACK_ROOTis~/.stackonly on Unix-like operating systems. On Windows, the default is%APPDATA%/stack(usually%HOME%\AppData\Roaming\stack).On Unix-like OSs, Stack stores GHC and other tools in a
programsdirectory in theSTACK_ROOT. On Windows, Stack stores those tools and MSYS2 in%LOCALAPPDATA%\Programs\stack(usually%HOME%\AppData\Local\Programs\stack).