Skip to content

Doc: http:// links to https:// #43

Doc: http:// links to https://

Doc: http:// links to https:// #43

name: Build
on:
push:
branches:
- master
- ci-*
- release-*
pull_request:
branches:
- master
- ci-*
- release-*
defaults:
run:
shell: bash
jobs:
main:
name: GHC ${{ matrix.ghc }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
ghc:
- "8.0.2"
# Andreas, 2023-06-20, reduce CI load, keep only extremal GHC versions
# - "8.2.2"
# - "8.4.4"
# - "8.6.5"
# - "8.8.4"
# - "8.10.7"
# - "9.0.2"
# - "9.2.8"
- "9.4.7"
- "9.6.3"
- "9.8.1"
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: "latest"
cabal-update: true
- uses: actions/cache@v3
name: Cache cabal stuff
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}
- name: Versions
run: |
cabal --version
- name: Install alex & happy
run: |
cd ../
cabal install alex happy
- name: Unpack
run: |
cp src/Parser.y src/Parser.y.boot
cp src/Scan.x src/Scan.x.boot
cabal sdist --ignore-project --output-directory .
cabal get alex-*.tar.gz
- name: Build
run: |
cd alex-*/
cabal build all --enable-tests --enable-benchmarks
- name: Test
run: |
cd alex-*/
export ALEX=$(cabal list-bin alex)
cabal run --enable-tests alex:test:tests
- name: Haddock
run: |
cd alex-*/
cabal haddock --disable-documentation --haddock-all all
- name: Cabal check
run: |
cd alex-*/
cabal check