Skip to content

also pin ghc and cabal versions #157

also pin ghc and cabal versions

also pin ghc and cabal versions #157

name: Build and run tests
on:
push:
# pull_request: # Don't run twice
jobs:
flakes-simple:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: haskell-actions/setup@v2
with:
enable-stack: true
ghc-version: '9.8.2'
cabal-version: '3.10.3.0'
stack-version: '2.15.5'
- uses: actions/cache@v3
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack-${{ hashFiles('stack.yaml.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-stack
- name: Install libcurl
run: sudo apt-get install libcurl4-openssl-dev
- name: Test explainable
run: stack test