-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (53 loc) · 1.4 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
on: [push, pull_request]
name: CI
jobs:
build:
strategy:
matrix:
name: [gcc, clang]
include:
- name: gcc
env: CC=gcc CXX=g++
- name: clang
env: CC=clang CXX=clang++
name: ${{ matrix.name }}
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Packages
run: |
sudo apt-get update
sudo apt-get install -y \
bison \
build-essential \
clang \
cmake \
flex \
gcc \
git \
libboost-program-options-dev \
ninja-build \
python3 \
python3-pip \
python3-setuptools \
zlib1g-dev
sudo pip3 install -U lit
- name: Dependencies
run: |
./scripts/deps/setup-minisat.sh
./scripts/deps/setup-cms.sh
./scripts/deps/setup-gtest.sh
./scripts/deps/setup-unisamp.sh
./scripts/deps/setup-outputcheck.sh
- name: Configure
run: |
mkdir build
cd build
${{ matrix.env }} cmake -DNOCRYPTOMINISAT:BOOL=OFF -DENABLE_TESTING:BOOL=ON -DPYTHON_EXECUTABLE:PATH="$(which python3)" -G Ninja ..
- name: Build
run: cmake --build . --parallel "$(nproc)"
working-directory: build
- name: Test
run: ctest --parallel "$(nproc)" -VV --output-on-failure
working-directory: build
# EOF