Skip to content

Commit

Permalink
Add mathsat installation to Github actions workflow
Browse files Browse the repository at this point in the history
* Use `ssh-agent` to clone with specific private key
* Set `0o400` permissions on private key file
* Add `mathsat` to list of solvers used in tests
  • Loading branch information
langfield committed Mar 31, 2023
1 parent a4ca600 commit 3397b7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,13 @@ jobs:

- name: Install SMT solvers
run: |
echo "${{ secrets.MATHSAT_INSTALL_DEPLOY_KEY }}" >> mathsat_id_ed25519
chmod 400 mathsat_id_ed25519
ssh-agent bash -c 'ssh-add mathsat_id_ed25519; git clone [email protected]:NethermindEth/mathsat-install.git'
cp mathsat-install/install-mathsat.sh ./scripts/ci/install-mathsat.sh
sh ./scripts/ci/install-z3-linux-amd64.sh
sh ./scripts/ci/install-cvc5-linux.sh
sh ./scripts/ci/install-mathsat.sh
- uses: actions/setup-python@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/bats-template
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test_case() {
temp_file="${base}.temp"

horus-compile "$test_file" --output "$compiled_file" --spec_output "$spec_file"
stack run horus-check "$compiled_file" "$spec_file" -- -s cvc5 -s z3 -t 100000 &> "$temp_file" || true
stack run horus-check "$compiled_file" "$spec_file" -- -s cvc5 -s mathsat -s z3 -t 100000 &> "$temp_file" || true
compare "${gold_file}" "${temp_file}"
rm "$compiled_file"
rm "$spec_file"
Expand Down

0 comments on commit 3397b7c

Please sign in to comment.