try installing libpgf in GHC's own MinGW

This commit is contained in:
Krasimir Angelov
2026-09-09 13:42:26 +02:00
parent f8c471adb4
commit 2958bf2a0e
+11 -3
View File
@@ -348,6 +348,16 @@ jobs:
with: with:
ghc-version: 8 ghc-version: 8
- name: Install libpgf for GHC
shell: pwsh
run: |
$ghcLibDir = ghc --print-libdir
$ghcRoot = Split-Path (Split-Path $ghcLibDir -Parent) -Parent
Copy-Item "${{ github.workspace }}\lib\*" "$ghcRoot\mingw\lib\" -Force
Copy-Item "${{ github.workspace }}\include\pgf" "$ghcRoot\mingw\include\" -Recurse -Force
Copy-Item "${{ github.workspace }}\bin\libpgf-0.dll" "$ghcRoot\bin\" -Force
- name: Install Haskell build tools - name: Install Haskell build tools
run: | run: |
cabal v1-install alex happy cabal v1-install alex happy
@@ -355,9 +365,7 @@ jobs:
- name: build and test the runtime - name: build and test the runtime
working-directory: ./src/runtime/haskell working-directory: ./src/runtime/haskell
run: | run: |
dir ${{ github.workspace }}\lib cabal v1-install
dir ${{ github.workspace }}\include
cabal v1-install --extra-lib-dirs=${{ github.workspace }}\lib --extra-include-dirs=${{ github.workspace }}\include
cabal test cabal test
- name: build the compiler - name: build the compiler