Skip to content

Commit b57686c

Browse files
committed
started an action to compile gf on Windows
1 parent f55f1cb commit b57686c

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/build-majestic.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,45 @@ jobs:
331331
${{runner.temp}}/msys64/mingw64/lib/libpgf*
332332
${{runner.temp}}/msys64/mingw64/include/pgf
333333
334+
windows-haskell:
335+
name: Haskell (Windows)
336+
runs-on: windows-latest
337+
needs: mingw64-runtime
338+
339+
steps:
340+
- uses: actions/checkout@v7
341+
- name: Download artifact
342+
uses: actions/download-artifact@v4
343+
with:
344+
name: libpgf-windows
345+
346+
- name: Setup Haskell
347+
uses: haskell-actions/setup@v2
348+
with:
349+
ghc-version: 8
350+
351+
- name: Install Haskell build tools
352+
run: |
353+
cabal v1-install alex happy
354+
355+
- name: build and test the runtime
356+
working-directory: ./src/runtime/haskell
357+
run: |
358+
cabal v1-install
359+
cabal test
360+
361+
- name: build the compiler
362+
working-directory: ./src/compiler
363+
run: |
364+
cabal v1-install
365+
366+
- name: Upload artifact
367+
uses: actions/upload-artifact@v4
368+
with:
369+
name: compiler-linux
370+
path: |
371+
~/.cabal/bin/gf
372+
334373
windows-python:
335374
name: Python (Windows)
336375
runs-on: windows-latest

0 commit comments

Comments
 (0)