Skip to content

add GH action to build the project #2

add GH action to build the project

add GH action to build the project #2

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
name: Haskell GHC
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
with:
enable-stack: true
stack-no-global: true
stack-setup-ghc: true
- uses: actions/cache@v4
with:
path: |
~/.stack
.stack-work
key: ${{ runner.os }}-${{ hashFiles('**/*.cabal','**/stack.yaml') }}
restore-keys: |
${{ runner.os }}-
- run: stack build