Skip to content

Bumping zlib

Bumping zlib #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]
# https://www.haskell.org/ghc/
# https://hackage.haskell.org/package/cabal-install
cabal: ["3.10"]
ghc: ["8.10", "9.0", "9.2", "9.4", "9.6"]
steps:
- name: Clone Repository
uses: actions/[email protected]
- 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 -ftools
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/