Counter Example generation #358
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: stack | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
env: | |
# We test in stack jobs that we can build with link-z3-as-a-library | |
STACK_FLAGS: --no-terminal --flag liquid-fixpoint:link-z3-as-a-library | |
jobs: | |
build: | |
name: ghc-${{ matrix.ghc }} z3-4.10.2 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
cabal: ["3.6"] | |
ghc: | |
- "9.8.1" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup z3 | |
uses: pavpanchekha/setup-z3@6b2d476d7a9227e0d8d2b94f73cd9fcba91b5e98 | |
with: | |
version: "4.10.2" | |
- name: Workaround runner image issue | |
# https://github.com/actions/runner-images/issues/7061 | |
run: sudo chown -R $USER /usr/local/.ghcup | |
- name: Setup Stack | |
uses: haskell-actions/setup@v2 | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
cabal-version: ${{ matrix.cabal }} | |
enable-stack: true | |
stack-version: "latest" | |
- name: Cache ~/.stack and .stack-work | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.stack | |
.stack-work | |
key: ${{ runner.os }}-${{ matrix.ghc }}-stack-${{ hashFiles('**/*.cabal', './stack.yaml', './stack.yaml.lock') }} | |
- name: Build | |
run: stack test --no-run-tests $STACK_FLAGS | |
- name: Test | |
run: stack test --test-arguments "--color=always" $STACK_FLAGS |