Merge pull request #23 from emilypi/support-ghc-9.12 #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- master | |
pull_request: {} # Validate all PRs | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-latest] | |
ghc: ['9.4', '9.6', '9.8', '9.10', '9.12'] | |
include: | |
- os: macOS-latest | |
ghc: 'latest' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install libncurses5 and libtinfo | |
if: runner.os == 'Linux' && (matrix.ghc == '8.0' || matrix.ghc == '8.2') | |
run: | | |
sudo apt-get install libncurses5 libtinfo5 | |
- uses: haskell-actions/setup@v2 | |
id: setup-haskell-cabal | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
- name: Update cabal package database | |
run: cabal update | |
- uses: actions/cache@v2 | |
name: Cache cabal stuff | |
with: | |
path: | | |
${{ steps.setup-haskell-cabal.outputs.cabal-store }} | |
dist-newstyle | |
key: ${{ runner.os }}-${{ matrix.ghc }} | |
- name: Test | |
run: | | |
cabal sdist -z -o . | |
cabal get nonempty-vector-*.tar.gz | |
cd nonempty-vector-*/ | |
cabal build nonempty-vector:tests --enable-tests --enable-benchmarks | |
cabal test --enable-tests --enable-benchmarks --test-show-details=direct all | |
- name: Haddock | |
run: | | |
cd nonempty-vector-*/ | |
cabal haddock all | |
- name: Cabal check | |
run: | | |
cd nonempty-vector-*/ | |
cabal check | |
bounds-checking: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: haskell/actions/setup@v2 | |
id: setup-haskell-cabal | |
with: | |
ghc-version: 'latest' | |
- name: Update cabal package database | |
run: cabal update | |
- uses: actions/cache@v2 | |
name: Cache cabal stuff | |
with: | |
path: | | |
${{ steps.setup-haskell-cabal.outputs.cabal-store }} | |
dist-newstyle | |
key: ${{ runner.os }}-latest | |
- name: Test | |
run: cabal test --ghc-options='-fcheck-prim-bounds -fno-ignore-asserts' |