-
Notifications
You must be signed in to change notification settings - Fork 30
How to install system libraries on windows? #37
Comments
For cabal, I tried - name: Install system dependencies (windows)
if: matrix.os == 'windows-latest'
run: mingw64-pkg install zlib It failed with
|
This took way too long to figure out, but I think I have a minimal example here: jobs:
zlib:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
update: true
install: zlib
- uses: haskell-CI/setup@main
with:
ghc-version: 8.8.4
cabal-version: 3.2.0.0
- run: cabal update
- run: cabal run (with a minimal hello-world of importing the zlib library to make sure I'm using something that needs zlib) I couldn't get mingw64-pkg working regardless of whether or not I installed msys2 via chocolatey or the action. This is the codepath that is causing it to fail. I'm not quite sure why it's there; although it seems to just be a wrapper around |
There's nothing Haskell specific about installing system packages. Cabal or stack just has to be informed about their include/lib locations, and DLL locations added to PATH. I've been using |
I think it's common to have to install system libraries. I don't see any description on how to do that with this action (for both stack and cabal).
The text was updated successfully, but these errors were encountered: