Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update MathSAT to 5.6.9 #1107

Update MathSAT to 5.6.9

Update MathSAT to 5.6.9 #1107

Workflow file for this run

name: CI
on:
push:
workflow_dispatch: # allow manual trigger
jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check format using clang-format
run: |
find . -type d -name "contrib" -prune -or -type f \( -name '*.h' -or -name '*.cpp' \) -print \
| xargs clang-format --dry-run -Werror --style=file
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
build_type: [release, debug]
link_type: [dynamic, static]
include:
- build_type: debug
conf_build_opts: --debug
- link_type: static
conf_link_opts: --static
name: ${{ matrix.os }}:${{ matrix.build_type }}-${{ matrix.link_type }}
runs-on: ${{ matrix.os}}
steps:
- uses: actions/checkout@v5
- name: Install Packages (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libbison-dev \
cmake \
ninja-build
- name: Install Packages (macOS)
if: runner.os == 'macOS'
run: |
brew update
brew install \
bison
echo "PATH=$(brew --prefix)/opt/bison/bin:$PATH" >> "$GITHUB_ENV"
- name: Python Environment Setup
run: |
python3 -m venv ./.venv
source .venv/bin/activate
python3 -m pip install \
Cython \
meson \
packaging \
setuptools
- name: Download MathSAT
run: ./ci-scripts/setup-msat.sh --auto-yes
- name: Setup Flex
run: ./contrib/setup-flex.sh
- name: Setup Btor2Tools
run: ./contrib/setup-btor2tools.sh
- name: Setup Smt-Switch
run: |
source .venv/bin/activate
./contrib/setup-smt-switch.sh --python --with-btor ${{ matrix.extra_solver_flags }}
./contrib/setup-smt-switch.sh --python --with-btor --with-msat
python3 -m pip install $(ls deps/smt-switch/build/python/*.whl)
- name: Configure
run: |
source .venv/bin/activate
./configure.sh --python --with-btor --with-msat ${{ matrix.conf_build_opts }} ${{ matrix.conf_link_opts }}
- name: Build
run: |
cd build
make -j
- name: Upload built executable
if: matrix.link_type == 'static'
uses: actions/upload-artifact@v4
with:
name: pono_${{ runner.arch }}_${{ matrix.build_type }}
path: ./build/pono
- name: Test C++
id: test-cpp
continue-on-error: true
run: |
cd build
make check
- name: Upload failing test log
if: steps.test-cpp.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.link_type }}-test-log-${{ github.run_id }}
path: build/tests/Testing/Temporary/LastTest.log
- name: Fail pipeline due to C++ test failure
if: steps.test-cpp.outcome == 'failure'
run: |
echo "C++ tests failed. Inspect the artifact for details."
exit 1
- name: Install Python Bindings
run: |
source .venv/bin/activate
python3 -m pip install ./build/python[test]
- name: Test Python Bindings
run: |
source .venv/bin/activate
pytest ./tests