Skip to content

Create a setup script for Windows that creates cabal.project.local #21

Create a setup script for Windows that creates cabal.project.local

Create a setup script for Windows that creates cabal.project.local #21

Workflow file for this run

name: Windows CI
on:
push:
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
ghc: ["8.8.4", "8.10.7", "9.4.8"]
steps:
- name: Set up GHC
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
- name: Check out code
uses: actions/checkout@v2
- name: Update cabal
run: cabal update
- name: Build project
run: |
win_setup.bat
cabal build
- name: Create a zip with exe file and assets
run: |
mkdir -p exe
cp $(cabal list-bin Game) exe/
cp -r assets exe/
cp sdl/bin/SDL2.dll exe/
7z a exe.zip exe
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: windows-artifacts
path: exe.zip