Skip to content

Commit

Permalink
add GH action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
juhp committed Jan 21, 2023
1 parent db62c56 commit 2e3df5e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,31 @@
name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ghc: ['9.4', '9.2', '9.0', '8.10', '8.8', '8.6']
name: Haskell GHC ${{ matrix.ghc }}
steps:
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
- uses: actions/cache@v3
with:
path: |
~/.cabal
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal','**/cabal.project') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
${{ runner.os }}-
- run: cabal update
- run: cabal build
- run: cabal test
- run: cabal sdist

0 comments on commit 2e3df5e

Please sign in to comment.