Merge pull request #342 from juhp/add-build-ci

add GH action to build the project
This commit is contained in:
Bryan Richter 2025-02-03 16:10:13 +02:00 committed by GitHub
commit 8001335ed3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

27
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,27 @@
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
- uses: actions/cache@v4
with:
path: |
~/.stack
.stack-work
key: ${{ runner.os }}-${{ hashFiles('**/*.cabal','**/stack.yaml') }}
restore-keys: |
${{ runner.os }}-
- run: stack build