Skip to content

stack.yaml - Diff 1.0.2. #345

stack.yaml - Diff 1.0.2.

stack.yaml - Diff 1.0.2. #345

Workflow file for this run

name: CI
# Trigger the workflow on push or pull request, but only for the master branch
on:
pull_request:
push:
branches: [master]
jobs:
cabal:
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
cabal: ["3.2"]
ghc:
- "8.4.4"
- "8.6.5"
- "8.8.4"
- "8.10.7"
- "9.0.2"
- "9.2.2"
steps:
- uses: actions/checkout@v2
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
- name: Install cabal/ghc
run: |
ghcup install ghc --set ${{ matrix.ghc }}
ghcup install cabal --set ${{ matrix.cabal }}
- name: Cache cabal global package db
id: cabal-global
uses: actions/cache@v2
with:
path: |
~/.cabal
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-cabal-global-${{ hashFiles('cabal.project') }}
- name: Cache cabal work
id: cabal-local
uses: actions/cache@v2
with:
path: |
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-cabal-local
- name: Build dependencies
run: |
cabal update
cabal configure --enable-tests --enable-benchmarks --test-show-details=direct
cabal build --dependencies-only --disable-optimization all
- name: Build
run: |
cabal build --disable-optimization all 2>&1 | tee build.log
# fail if warnings in local build
# ! grep -q ": *[Ww]arning:" build.log || exit 1
- name: Test
run: |
cabal test --disable-optimization all
stack:
name: stack / ghc ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
stack: ["2.7.3"]
ghc: ["9.0.2"]
stackopts: ["--flag citeproc:icu", ""]
steps:
- uses: actions/checkout@v2
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
# We should have ghc 8.10, cabal, stack pre-installed
# - uses: haskell/actions/setup@v1
# with:
# enable-stack: true
# stack-version: 'latest'
- uses: actions/cache@v1
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
- name: Install icu
run: |
sudo apt-get install libicu-dev
- name: Build
run: |
stack build ${{ matrix.stackopts }} --system-ghc --fast --test --bench --no-run-tests --no-run-benchmarks
# We don't run tests because of some slight discrepancies in test
# results with icu; right now we just want to make sure it builds.