From f80e5cf7fc632367fd09fbe09e7a71bfb2b471b7 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Fri, 24 Jan 2025 12:54:54 -0500 Subject: [PATCH] ci: Try using haskell-actions/setup This would allow us to use a single CI infrastructure for all platforms. --- .github/workflows/validate.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..42e9479 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,22 @@ +on: [push] +name: build +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + ghc: ['9.2.3', '9.4.5', '9.6.6', '9.8.4', '9.10.1'] + cabal: ['3.14.1.1'] + os: [ubuntu-latest, macOS-latest, windows-latest] + name: "${{ matrix.os }} - ${{ matrix.ghc }}" + steps: + - uses: actions/checkout@v4 + - name: Setup Haskell + uses: haskell-actions/setup@v2 + with: + ghc-version: ${{ matrix.ghc }} + cabal-version: ${{ matrix.cabal }} + - run: cabal check + - run: cabal update + - run: cabal build + - run: cabal test --test-show-details=direct