Updating actions scripts to the newer version - fixing MSYS2 script #31
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: Build on Windows MSYS2 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
MSYS2-build-and-test: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW64 | |
update: true | |
install: git make patch unzip mingw-w64-x86_64-toolchain mingw-w64-x86_64-zlib mingw-w64-x86_64-gmp | |
- uses: actions/checkout@v4 | |
- name: build COMiniSatPS | |
run: | | |
cd .. | |
wget --no-check-certificate https://baldur.iti.kit.edu/sat-competition-2016/solvers/main/COMiniSatPSChandrasekharDRUP.zip | |
unzip COMiniSatPSChandrasekharDRUP.zip | |
mv 'COMiniSatPS Chandrasekhar DRUP/cominisatps' . | |
cd cominisatps | |
patch -p1 <../UWrMaxSat/cominisatps.patch | |
- name: make SAT solver library | |
run: | | |
cd ../cominisatps/simp | |
MROOT=.. make libr | |
- name: create SAT solver links | |
run: | | |
cd ../cominisatps | |
mkdir minisat | |
cd minisat | |
ln -s ../core ../simp ../mtl ../utils . | |
- name: build the MaxPre preprocessor | |
run: | | |
cd .. | |
git clone https://github.com/Laakeri/maxpre | |
cd maxpre | |
sed -i 's/-g/-D NDEBUG/' src/Makefile | |
make lib | |
- name: build UWrMaxSat | |
run: | | |
make config | |
USESCIP= make r | |
- name: test executable | |
run: | | |
build/release/bin/uwrmaxsat -of Examples/unsat.opb | |
build/release/bin/uwrmaxsat -of Examples/garden9x9.opb | |
build/release/bin/uwrmaxsat -bm Examples/satellite02ac.wcsp.wcnf | |
build/release/bin/uwrmaxsat -maxpre -bm Examples/satellite02ac.wcsp.wcnf | |
- name: build and test BIGWEIGHTS | |
run: | | |
USESCIP= make clean | |
sed -i 's/BIGWEIGHTS?=#/BIGWEIGHTS?=/' config.mk | |
USESCIP= make r | |
build/release/bin/uwrmaxsat -of Examples/stein27_bignum.opb |