From bb947748421519a4df45786beebfc3329ac7fc45 Mon Sep 17 00:00:00 2001 From: Malvin Gattinger Date: Fri, 12 Apr 2024 18:54:51 +0200 Subject: [PATCH] use newer Haskell, add github action --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ stack.yaml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..24f00ea --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +on: [push] + +name: Build + +jobs: + build: + name: Build and run tests + runs-on: ubuntu-latest + steps: + - name: Cache + uses: actions/cache@v3 + with: + key: stack + path: | + ~/.stack + ~/.stack-work + - uses: actions/checkout@v3 + - name: Compile library + run: stack --system-ghc build + - name: Compile tests + run: stack --system-ghc test --no-run-tests + - name: Run tests + run: stack --system-ghc test diff --git a/stack.yaml b/stack.yaml index 6bfebad..377040a 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1 +1 @@ -resolver: nightly-2023-04-01 +resolver: lts-21.25