1
0
forked from GitHub/gf-core
Files
gf-core/.github/workflows/build-windows-package.yml
John J. Camilleri 0b3ae5aaa2 Rename artifacts
2020-11-19 00:26:53 +01:00

43 lines
928 B
YAML

name: Build Windows Package
on:
push: # testing until merged into master
workflow_dispatch:
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
ghc: ["8.6.5"]
cabal: ["2.4"]
steps:
- uses: actions/checkout@v2
- name: Setup Haskell
uses: actions/setup-haskell@v1
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: Install build tools
run: |
cabal install alex happy
- name: Build GF
run: |
cabal install --only-dependencies -fserver
cabal configure -fserver
cabal build
- name: Upload exe to artifact
uses: actions/upload-artifact@v2
with:
name: gf-${{ github.sha }}-windows
path: dist\build\gf\gf.exe
if-no-files-found: error