From a8a610a74113d3bf0d36ab8c206f6d285e3b324d Mon Sep 17 00:00:00 2001 From: David Binder Date: Tue, 11 Oct 2022 13:29:29 +0200 Subject: [PATCH 1/2] Add dist-newstyle/ to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 321a5b5..627c369 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .stack-work/ *~ +dist-newstyle/ *.lock # This is a lib, we'd rather not commit the lock file... From 25ea730303404a2e1cc7a56e3d169d48ce1fc148 Mon Sep 17 00:00:00 2001 From: David Binder Date: Tue, 11 Oct 2022 13:29:47 +0200 Subject: [PATCH 2/2] Add Github CI build matrix --- .github/workflows/ci.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..7e26105 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,28 @@ +name: build +on: + push: + branches: + - main + pull_request: + types: + - opened + - synchronize + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + ghc: ['9.0.2'] + cabal: ['3.6'] + os: [ubuntu-latest, macOS-latest, windows-latest] + name: Haskell GHC ${{ matrix.ghc }} ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Setup Haskell + uses: haskell/actions/setup@v2 + with: + ghc-version: ${{ matrix.ghc }} + cabal-version: ${{ matrix.cabal }} + - run: | + cabal test \ No newline at end of file