Skip to content

Commit

Permalink
Add .github/workflows/build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed Jan 19, 2021
1 parent bef2456 commit 8d0c485
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: build

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: 0 0 * * *

jobs:
build:
name: ${{ matrix.os }} / GHC ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
os:
- ubuntu-16.04 # https://launchpad.net/~hvr/+archive/ubuntu/ghc?field.series_filter=xenial
ghc:
- 7.4.1
- 7.4.2
- 7.6.1
- 7.6.2
- 7.6.3
- 7.8.1
- 7.8.2
- 7.8.3
- 7.8.4
- 7.10.1
- 7.10.2
- 7.10.3
- 8.0.1
- 8.0.2
- 8.2.1
- 8.2.2
- 8.4.1
- 8.4.2
- 8.4.3
- 8.4.4
- 8.6.1
- 8.6.2
- 8.6.3
- 8.6.4
- 8.6.5
- 8.8.1
- 8.8.2
- 8.8.3
- 8.8.4
- 8.10.1
- 8.10.2
include:
- os: macos-latest
ghc: latest
- os: windows-latest
ghc: latest
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}
- uses: sol/run-haskell-tests@v1

success:
needs: build
runs-on: ubuntu-latest
if: always() # this is required as GitHub considers "skipped" jobs as "passed" when checking branch protection rules

steps:
- run: false
if: needs.build.result != 'success'
5 changes: 5 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
packages:
HUnit.cabal

package HUnit
ghc-options: -Werror

0 comments on commit 8d0c485

Please sign in to comment.