Skip to content

Commit

Permalink
Add GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lukel97 committed Jun 26, 2020
1 parent e7d0336 commit 45577a8
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and Test

on: [push, pull_request]
jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
ghc: ['8.10.1', '8.8.3', '8.6.5', '8.4.4']
os: [ubuntu-latest, macOS-latest, windows-latest]
exclude:
- os: windows-latest
ghc: '8.8.3' # fails due to segfault

steps:
- uses: actions/checkout@v2
- uses: actions/setup-haskell@v1.1.1
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.2'
enable-stack: true

- name: Cache Cabal
uses: actions/cache@v1.2.0
with:
path: ~/.cabal
key: ${{ runner.OS }}-${{ matrix.ghc }}-cabal-0

- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
if: matrix.os == 'ubuntu-latest'
with:
ignore: tests

- run: cabal update
- name: Build
run: cabal build
- name: Test
run: cabal test

0 comments on commit 45577a8

Please sign in to comment.