Skip to content

GitHub Actions: use GHC 9.8.2 instead of 9.8.3 #28

GitHub Actions: use GHC 9.8.2 instead of 9.8.3

GitHub Actions: use GHC 9.8.2 instead of 9.8.3 #28

Workflow file for this run

on: [push, pull_request]
name: build
jobs:
sign:
name: sign
runs-on: ${{ matrix.os }}
strategy:
matrix:
ghc: ['8.4.4', '8.6.5', '8.8.4', '8.10.7', '9.0.2', '9.2.8', '9.4.8', '9.6.6', '9.8.2']
os: [ubuntu-latest]
include:
- ghc: '8.4.4'
resolver: 'lts-12.26'
flags: ''
- ghc: '8.6.5'
resolver: 'lts-14.27'
flags: ''
- ghc: '8.8.4'
resolver: 'lts-16.31'
- ghc: '8.10.7'
resolver: 'lts-18.28'
flags: ''
- ghc: '9.0.2'
resolver: 'lts-19.33'
flags: ''
- ghc: '9.2.8'
resolver: 'lts-20.26'
flags: ''
- ghc: '9.4.8'
resolver: 'lts-21.25'
flags: ''
- ghc: '9.6.6'
resolver: 'lts-22.40'
coveralls: true
flags: '--coverage'
- ghc: '9.8.2'
resolver: 'nightly-2024-10-21'
flags: ''
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true
stack-version: 'latest'
- name: Setup stack
run: stack config set system-ghc --global true
- uses: actions/cache@v4
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
- name: Build
run: |
echo "resolver: ${{ matrix.resolver }}" > stack.yaml
stack build --test --no-run-tests --bench --no-run-benchmarks ${{ matrix.flags }}
- name: Test
run: stack test ${{ matrix.flags }}
- name: Create source tarball
run: stack sdist
- name: Coveralls
if: matrix.coveralls
continue-on-error: true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
curl -L https://github.com/rubik/stack-hpc-coveralls/releases/download/v0.0.7.0/shc-Linux-X64.tar.bz2 | tar -xj
./shc --repo-token="$COVERALLS_REPO_TOKEN" sign TestSign