Skip to content

Commit

Permalink
ci: windows: Teach GHC about our MSYS2 installation
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed Oct 20, 2023
1 parent 1b57252 commit 35aa4da
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ jobs:
with:
ghc-version: '9.4.7'

- name: Teach GHC about MSYS2
run: |
GHC_MINGW_DIR="$(ghc --print-libdir)/../mingw/x86_64-*-mingw32/lib/"
GHC_MINGW_DIR_RESOLVED="$(readlink -f "$GHC_MINGW_DIR")"
cabal user-config -a "extra-prog-path: D:/a/_temp/msys64/ucrt64/bin, D:/a/_temp/msys64/usr/bin" \
-a "extra-include-dirs: D:/a/_temp/msys64/ucrt64/include" \
-a "extra-lib-dirs: $GHC_MINGW_DIR_RESOLVED, D:/a/_temp/msys64/ucrt64/lib" \
-f init
- name: build and install c dependencies
run: |
echo "::group::Installing libsecp256k1"
Expand Down

0 comments on commit 35aa4da

Please sign in to comment.