Support AbstractFilePath
#42
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: CI | |
# Trigger the workflow on push or pull request, but only for the master branch | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
jobs: | |
cabal: | |
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
cabal: ["3.10"] | |
ghc: | |
# GHC versions listed as current stable releases | |
- "9.2.8" | |
- "9.4.7" | |
- "9.6.3" | |
# GHC 9.8 only works with cabal-install >= 3.10.2.0, which is not | |
# available from haskell-actions/setup (or on Hackage) | |
# - "9.8.1" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: haskell-actions/setup@v2 | |
id: setup-haskell-cabal | |
name: Setup GHC and cabal-install | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
cabal-version: ${{ matrix.cabal }} | |
- name: Configure | |
run: | | |
cabal configure --enable-tests --enable-benchmarks --test-show-details=direct | |
- name: Freeze | |
run: | | |
cabal freeze | |
- uses: actions/cache@v3 | |
name: Cache ~/.cabal/store | |
with: | |
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }} | |
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} | |
- name: Install dependencies | |
run: | | |
cabal build all --only-dependencies | |
- name: Build | |
run: | | |
cabal build all | |
- name: Test the test-suite test | |
run: | | |
cabal test path:test | |
# - name: Test the test-suite validity-test | |
# run: | | |
# cabal test path:validity-test | |
# As of 2023-10-16, the GitHub-hosted runner on ubuntu-latest comes with | |
# Stack 2.13.1 and GHC 9.6.3. | |
stack: | |
name: stack / ghc ${{ matrix.ghc }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ghc: ["9.6.3"] | |
steps: | |
- name: Clone project | |
uses: actions/checkout@v4 | |
- name: Cache Stack root | |
uses: actions/cache@v3 | |
with: | |
path: ~/.stack | |
key: ${{ runner.os }}-${{ matrix.ghc }}-stack | |
- name: Install dependencies | |
run: | | |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --only-dependencies | |
- name: Build | |
run: | | |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks | |
- name: Test the test-suite test | |
run: | | |
stack test path:test:test --system-ghc | |
# - name: Test the test-suite validity-test | |
# run: | | |
# stack test path:test:validity-test --system-ghc |