Skip to content

Allow crypton-connection 0.4 (#109) #12

Allow crypton-connection 0.4 (#109)

Allow crypton-connection 0.4 (#109) #12

Workflow file for this run

# modified from https://github.com/jgm/pandoc/blob/master/.github/workflows/ci.yml
name: CI
on:
push:
branches:
- '**'
paths-ignore: []
pull_request:
paths-ignore: []
jobs:
linux:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
versions:
- ghc: '8.8'
cabal: 'latest'
- ghc: '8.10'
cabal: 'latest'
- ghc: '9.0'
cabal: 'latest'
- ghc: '9.2'
cabal: 'latest'
- ghc: '9.4'
cabal: 'latest'
- ghc: '9.6'
cabal: 'latest'
- ghc: '9.8'
cabal: 'latest'
- ghc: '9.10'
cabal: 'latest'
steps:
- uses: actions/checkout@v4
# need to install older cabal/ghc versions from ppa repository
- name: Install recent cabal/ghc
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.versions.ghc }}
cabal-version: ${{ matrix.versions.cabal }}
# declare/restore cached things
# caching doesn't work for scheduled runs yet
# https://github.com/actions/cache/issues/63
- name: Cache cabal global package db
id: cabal-global
uses: actions/cache@v4
with:
path: |
~/.cabal
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-global-${{ hashFiles('cabal.project') }}
- name: Cache cabal work
id: cabal-local
uses: actions/cache@v4
with:
path: |
dist-newstyle
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-local
- name: Install dependencies
run: |
cabal update
cabal build --dependencies-only --enable-tests --disable-optimization
- name: Build
run: |
cabal build --enable-tests --disable-optimization 2>&1 | tee build.log
- name: Install RabbitMQ server
run: |
sudo apt-get install rabbitmq-server
PATH=/usr/lib/rabbitmq/bin/:$PATH ./bin/ci/before_build.sh
- name: Test
run: |
cabal test --disable-optimization