Skip to content

Use root domain for package URL submitted to Hackage #386

Use root domain for package URL submitted to Hackage

Use root domain for package URL submitted to Hackage #386

Workflow file for this run

name: CI
# Trigger the workflow on push or pull request, but only for the master branch
on:
pull_request:
push:
branches: [master]
permissions:
contents: read
jobs:
build:
name: GHC ${{ matrix.ghc-version }} with Cabal ${{ matrix.cabal-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ghc-version: ["9.4", "9.2", "9.0", "8.10"]
cabal-version: ["3.8", "3.6", "3.4", "3.2"]
exclude:
- ghc-version: "9.4"
cabal-version: "3.2"
- ghc-version: "9.4"
cabal-version: "3.4"
- ghc-version: "9.2"
cabal-version: "3.2"
- ghc-version: "9.2"
cabal-version: "3.4"
- ghc-version: "9.0"
cabal-version: "3.2"
steps:
- uses: actions/checkout@v3
- name: Set up GHC ${{ matrix.ghc-version }} with Cabal ${{ matrix.cabal-version }}
uses: haskell/actions/setup@v2
id: setup
with:
ghc-version: ${{ matrix.ghc-version }}
cabal-version: ${{ matrix.cabal-version }}
- name: Configure the build
run: |
cabal configure --enable-tests --enable-benchmarks --disable-documentation
cabal build --dry-run
- name: Restore cached dependencies
uses: actions/cache/restore@v3
id: cache
env:
key: ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-cabal-${{ steps.setup.outputs.cabal-version }}
with:
path: ${{ steps.setup.outputs.cabal-store }}
key: ${{ env.key }}-plan-${{ hashFiles('**/plan.json') }}
restore-keys: ${{ env.key }}-
- name: Install dependencies
run: cabal build all --only-dependencies
- name: Save cached dependencies
uses: actions/cache/save@v3
if: ${{ steps.cache.outputs.cache-primary-key != steps.cache.outputs.cache-matched-key }}
with:
path: ${{ steps.setup.outputs.cabal-store }}
key: ${{ steps.cache.outputs.cache-primary-key }}
- name: Build
run: cabal build all