Skip to content

raise some lower bounds #57

raise some lower bounds

raise some lower bounds #57

Workflow file for this run

name: Build with Cabal
on: ['push']
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ghc: ['8.10.7', '9.0.1', '9.2', '9.4', '9.6']
cabal: ['3.10']
os: ['ubuntu-22.04', 'ubuntu-20.04', 'macOS-latest']
remoteConfigs: ['-remote-configs', '+remote-configs']
include:
- ghc: '9.2'
cabal: '3.6'
os: 'ubuntu-22.04'
remoteConfigs: '+remote-configs'
steps:
# Setup
- name: Checkout repository
uses: actions/checkout@v3
- name: Install GHC and Cabal
uses: haskell/actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: Configure project
run: |
cat > cabal.project.local <<EOF
package configuration-tools
documentation: True
benchmarks: True
tests: True
flags: ${{ matrix.remoteConfigs }}
EOF
# Restore Packages from Caches
- uses: actions/cache@v3
name: Cache cabal packages
with:
path: |
~/.cabal/packages
~/.cabal/store
dist-newstyle
key: ${{ matrix.os }}-${{ matrix.ghc }}-cabal
# Build
- name: Update package database
run: cabal update
- name: Configure build
run: |
cabal build all --dry-run
cabal freeze
- name: Install build dependencies
run: cabal build --only-dependencies
- name: Build library
run: cabal build
# Tests
- name: Run Tests
run: cabal test