git.iko.soy/typeable/pandoc
on master help sign in
GitHub CI - use matrix for linux/cabal build.
commit3b52baab8e74fff83c8e4ea140ceb43daf51b79f authorJohn MacFarlane <jgm@berkeley.edu> dateMon 16 Sep 2019, 23:15 (7 years ago) parent255f3c0
1 file changed+14−10
.github/workflows/haskell.yml+14−10
.github/workflows/haskell.yml+14−10
@@ -28,32 +28,36 @@ jobs:
2828 linux:
2929
3030 runs-on: ubuntu-latest
31−
31+ strategy:
32+ matrix:
33+ ghcversion:
34+ - 8.0.2
35+ - 8.2.2
36+ - 8.4.4
37+ - 8.6.5
38+ - 8.8.1
3239 steps:
3340 - uses: actions/checkout@v1
3441 - name: Install recent cabal/ghc
3542 run: |
3643 sudo add-apt-repository ppa:hvr/ghc
3744 sudo apt-get update
38− sudo apt-get install ghc-8.6.4 cabal-install-2.4
45+ sudo apt-get install ghc-${{ matrix.ghcversion }} cabal-install-2.4
3946 - name: Install dependencies
4047 run: |
4148 export PATH=/opt/cabal/bin:/opt/ghc/bin:$PATH
4249 cabal v2-update
4350 cabal v2-build --dependencies-only --enable-tests
44− - name: Build
45− run: |
46− export PATH=/opt/cabal/bin:/opt/ghc/bin:$PATH
47− cabal v2-build --enable-tests
48− - name: Run tests
51+ - name: Build and test
4952 run: |
5053 export PATH=/opt/cabal/bin:/opt/ghc/bin:$PATH
51− cabal v2-test
54+ cabal v2-install --enable-tests --run-tests 2>&1 | tee build.log
55+ # fail if warnings in local build
56+ ! grep -q "[Ww]arning:" build.log
5257
5358# ARTIFACTS: Currently disabled. The executables are large and
5459# if we do produce artifacts, we should zip them. We also
55−# might consider doing this only nightly, compiling
56−# with -split-sections and stripping the executable.
60+# might consider doing this only nightly and stripping.
5761# The code is included below in case we want to re-enable it.
5862#
5963# - name: Install artifact