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 31, 2021
1 parent 0386071 commit 1898863
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: build

on:
push:
branches:
- main
pull_request:
branches:
- main

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.0.1
- 7.0.2
- 7.0.3
- 7.0.4
- 7.2.1
- 7.2.2
- 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
- 8.10.3
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}

- run: |
mkdir -p "$HOME/.local/bin"
curl -L https://github.com/haskell-compat/base-compat/releases/download/typediff-0.1.4/typediff > "$HOME/.local/bin/typediff"
chmod a+x "$HOME/.local/bin/typediff"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- 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'

0 comments on commit 1898863

Please sign in to comment.