Configure stack CI jobs to run without link-z3-as-a-library #285
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: stack | |
on: | |
push: | |
pull_request: | |
env: | |
# We test in stack jobs that we can build without 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.4.7" | |
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/stack-${{ matrix.ghc }}.yaml', './stack/stack-${{ matrix.ghc }}.yaml.lock') }} | |
- name: Build | |
run: stack test --no-run-tests $STACK_FLAGS | |
- name: Test | |
run: stack test --test-arguments "--color=always" $STACK_FLAGS |