From 25ea730303404a2e1cc7a56e3d169d48ce1fc148 Mon Sep 17 00:00:00 2001 From: David Binder Date: Tue, 11 Oct 2022 13:29:47 +0200 Subject: [PATCH] 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