Skip to content

Not using walksat anymore #194

Not using walksat anymore

Not using walksat anymore #194

Workflow file for this run

name: build
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14]
build_type: [Release]
staticcompile: [ON, OFF]
c_compiler: [gcc]
cpp_compiler: [g++]
steps:
- name: Install help2man for Linux
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -yq help2man libgmp-dev
- name: Install gmp for Mac
if: matrix.os == 'macos-13'
run: |
HOMEBREW_NO_AUTO_UPDATE=1 brew install cmake
wget https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz
tar xf gmp-6.3.0.tar.xz
cd gmp-6.3.0
./configure --enable-static -enable-cxx --enable-shared
make -j8
sudo make install
cd ..
- name: Install zlib for Mac dynamic
if: matrix.os == 'macos-14' && matrix.staticcompile == 'OFF'
run: |
wget https://www.zlib.net/zlib-1.3.1.tar.gz
tar xzvf zlib-1.3.1.tar.gz
cd zlib-1.3.1
./configure
make -j8
sudo make install
cd ..
- name: Install zlib for Mac static
if: matrix.os == 'macos-14' && matrix.staticcompile == 'ON'
run: |
wget https://www.zlib.net/zlib-1.3.1.tar.gz
tar xzvf zlib-1.3.1.tar.gz
cd zlib-1.3.1
./configure --static
make -j8
sudo make install
cd ..
- name: Installing Numpy
run: |
pip install pip --upgrade
pip install numpy lit
- name: Checkout Cadical
uses: actions/checkout@v2
with:
repository: meelgroup/cadical
ref: mate-only-libraries-1.8.0
path: cadical
- name: Build Cadical
run: |
cd cadical
CXXFLAGS=-fPIC ./configure --competition
make -j8
cd ..
- name: Checkout Cadiback
uses: actions/checkout@v2
with:
repository: meelgroup/cadiback
ref: synthesis
path: cadiback
- name: Build Cadiback
run: |
cd cadiback
CXX=c++ ./configure
make -j8
cd ..
- name: checkout
uses: actions/[email protected]
with:
path: cryptominisat
- name: Add git submodules for Linux only (not needed for non-testing)
working-directory: cryptominisat
if: matrix.os == 'ubuntu-latest'
run: git submodule update --init
- name: Configure & build
run: |
cd cryptominisat
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTING=OFF -DSTATICCOMPILE=${{ matrix.staticcompile }} ..
cmake --build . --config ${{ matrix.build_type }}
- name: Upload Artifact - Linux
if: matrix.os == 'ubuntu-latest' && matrix.staticcompile == 'ON'
uses: actions/upload-artifact@v4
with:
name: cryptominisat5-linux-amd64
path: cryptominisat/build/cryptominisat5
- name: Upload Artifact - Mac
if: matrix.os == 'macos-14' && matrix.staticcompile == 'ON'
uses: actions/upload-artifact@v4
with:
name: cryptominisat5-mac-arm64
path: cryptominisat/build/cryptominisat5
- name: Upload Artifact - Windows
if: matrix.os == 'windows-2022' && matrix.staticcompile == 'ON'
uses: actions/upload-artifact@v4
with:
name: cryptominisat5-win64.exe
path: cryptominisat\build\Release\cryptominisat5.exe