Version v0.1.1 #38
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: Test Bitwuzla | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-bitwuzla: | |
runs-on: ubuntu-latest | |
env: | |
OPAMCONFIRMLEVEL: unsafe-yes | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache | |
id: cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/_opam | |
key: ${{ runner.os }}-test-bitwuzla-4.14-${{ hashFiles('**.opam') }} | |
restore-keys: | | |
${{ runner.os }}-opam-4.14- | |
- name: Setup OCaml 4.14 | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: "4.14" | |
dune-cache: true | |
allow-prerelease-opam: true | |
- name: Install dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: opam install -y . --deps-only --with-test | |
- name: Install Bitwuzla | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: opam install bitwuzla-cxx | |
- name: Build | |
run: opam exec -- dune build @install | |
- name: Test | |
run: opam exec -- dune exec ./test/test_bitwuzla.exe |