Skip to content

Added upper limits of required dependencies #75

Added upper limits of required dependencies

Added upper limits of required dependencies #75

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
ghc: ["8.10", "9.0", "9.2", "9.4", "9.6"]
os: [ubuntu-latest]
include:
- os: macos-latest
ghc: "9.2"
steps:
- uses: actions/checkout@v3
- name: Setup Haskell
id: setup-haskell-cabal
uses: haskell/actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: "3.8"
- name: Update dependencies with Hackage
run: cabal update
- name: Build dependencies
run: cabal freeze --enable-tests
- name: Cache dependencies and dist-newstyle
uses: actions/cache@v3
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: dependencies-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
dependencies-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
dependencies-${{ runner.os }}-${{ matrix.ghc }}-
- name: Install dependencies
run: cabal install --only-dependencies
- name: Build project
run: cabal build --enable-tests
- name: Run tests
run: cabal test --enable-tests