Skip to content

Update byline.cabal #43

Update byline.cabal

Update byline.cabal #43

Workflow file for this run

name: tests
on:
pull_request:
jobs:
cabal:
name: ${{ matrix.os }} / ghc-${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
cabal: ["3.4"]
ghc: ["8.8", "8.10", "9.0", "9.2.5"]
exclude:
# https://gitlab.haskell.org/ghc/ghc/-/issues/17926
- os: windows-latest
ghc: "8.8"
steps:
- name: Clone Repository
uses: actions/checkout@v3
- name: Setup Haskell
id: setup-haskell-cabal
uses: haskell/actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: Configure and Freeze for Cache
run: |
cabal configure --enable-tests --enable-benchmarks --test-show-details=direct -fbuild-examples
cabal freeze
- name: Cache ~/.cabal/store
uses: actions/cache@v3
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
- name: Build
run: cabal build '--build-log=logs/$pkgid'
- name: Test
run: cabal test
- name: Upload Build Logs on Failure
uses: actions/upload-artifact@v3
if: failure()
with:
name: logs-${{ matrix.os }}-ghc${{ matrix.ghc }}
path: logs/
- name: Install
run: cabal install --installdir=artifacts --install-method=copy
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-ghc${{ matrix.ghc }}
path: artifacts/