mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-09-15 23:06:01 -06:00
try installing libpgf in GHC's own MinGW
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user