-
Notifications
You must be signed in to change notification settings - Fork 32
89 lines (77 loc) · 2.81 KB
/
linux.yml
File metadata and controls
89 lines (77 loc) · 2.81 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Linux
on: [push, pull_request]
jobs:
gcc-build:
name: 'Linux GCC-${{matrix.version}} ${{matrix.build_type}}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build_type: [Release, Debug]
version: [9, 12]
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake cmake-data build-essential libgmp-dev gcc-${{matrix.version}} g++-${{matrix.version}}
- name: Configure
run: |
export CC=gcc-${{matrix.version}} CXX=g++-${{matrix.version}}
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
-DCMAKE_INSTALL_PREFIX=$HOME/sylvan-install \
-DSYLVAN_GMP=ON
- name: Build
run: cmake --build build --config ${{matrix.build_type}}
- name: Test
shell: bash
working-directory: build
run: |
ctest --output-on-failure -C ${{matrix.build_type}} -VV --timeout 30
examples/simple
examples/nqueens -w 2 9 | tee /dev/fd/2 | grep -q "352 solutions"
examples/bddmc ../models/schedule_world.2.bdd -w 2 | tee /dev/fd/2 | grep -q "1570340"
examples/lddmc ../models/blocks.2.ldd -w 2 | tee /dev/fd/2 | grep -q "7057 states"
- name: Install
run: cmake --install build
- name: Run pkg-config consumer test
working-directory: test/install/consumer-pkgconfig
run: |
export PKG_CONFIG_PATH=$HOME/sylvan-install/lib/pkgconfig
./test.sh
- name: Run CMake consumer test
working-directory: test/install/consumer-cmake
run: |
export CMAKE_PREFIX_PATH=$HOME/sylvan-install
./test.sh
clang-build:
name: 'Linux CLang-${{matrix.version}} ${{matrix.build_type}}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build_type: [Release, Debug]
version: [15, 19]
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y cmake cmake-data build-essential libgmp-dev clang-${{matrix.version}}
- name: Configure
run: |
export CC=clang-${{matrix.version}} CXX=clang++-${{matrix.version}}
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
-DSYLVAN_GMP=ON
- name: Build
run: cmake --build build --config ${{matrix.build_type}}
- name: Test
shell: bash
working-directory: build
run: |
ctest --output-on-failure -C ${{matrix.build_type}} -VV --timeout 30
examples/nqueens -w 2 9 | tee /dev/fd/2 | grep -q "352 solutions"
examples/bddmc ../models/schedule_world.2.bdd -w 2 | tee /dev/fd/2 | grep -q "1570340"
examples/lddmc ../models/blocks.2.ldd -w 2 | tee /dev/fd/2 | grep -q "7057 states"