v1.4.3: support GHC 9.6, 9.8 #111
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
nix-build: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
ghc: | |
- 8107 | |
- 902 | |
- 928 | |
- 948 | |
- 962 | |
- 981 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/[email protected] | |
name: Checkout | |
- uses: cachix/install-nix-action@v22 | |
name: Install Nix | |
- uses: cachix/cachix-action@v12 | |
name: Set up Cachix | |
with: | |
name: awakesecurity | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix-build --argstr compiler ghc${{ matrix.ghc }} | |
name: Build Package | |
stack-build: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
ghc: | |
- 8.10.7 | |
- 9.0.2 | |
- 9.2.8 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Haskell | |
uses: haskell/actions/[email protected] | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
enable-stack: true | |
stack-version: 2.11 | |
- name: Cache dependencies | |
uses: actions/[email protected] | |
with: | |
path: ~/.stack | |
key: ${{ runner.os }}-${{ matrix.ghc }}-stack | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.ghc }}-stack | |
- name: Build | |
run: stack build --system-ghc --stack-yaml stack-${{ matrix.ghc }}.yaml | |
- name: Test | |
run: stack test --system-ghc --stack-yaml stack-${{ matrix.ghc }}.yaml | |
# Test fails with ld warnings on macos-stack combo | |
# doctest fails with ghc-9.0.2 + stack: https://github.com/sol/doctest/issues/327 | |
continue-on-error: ${{ matrix.os == 'macos-latest' || matrix.ghc == '9.0.2' }} |