Compatibility with cond >= 0.5 #46
Workflow file for this run
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: Build | |
on: | |
pull_request: | |
paths: | |
- "src/**.hs" | |
- scrive-prelude.cabal | |
- .github/workflows/build.yaml | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
cabal-build: | |
runs-on: | |
- ubuntu-latest | |
strategy: | |
matrix: | |
ghc: | |
- 9.2.4 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: haskell/actions/setup@v2 | |
id: setup-haskell | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
cabal-version: 3.8.1.0 | |
- name: Create freeze file | |
run: cabal freeze | |
- uses: actions/cache@v3 | |
with: | |
key: ${{ runner.os }}-ghc-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} | |
path: ${{ steps.setup-haskell.outputs.cabal-store }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgmp-dev libpq-dev | |
- name: Run cabal build - ${{ matrix.ghc }} | |
run: cabal build |