-
Notifications
You must be signed in to change notification settings - Fork 121
29 lines (27 loc) · 1.07 KB
/
cmake-clang.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
##############################################################################
# GitHub Actions Workflow for volesti to build tests with GCC
#
# Copyright (c) 2020-2021 Vissarion Fisikopoulos
#
# Licensed under GNU LGPL.3, see LICENCE file
##############################################################################
name: cmake-clang
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.compilers }}
strategy:
fail-fast: false
matrix:
compilers: [clang++-6.0, clang++-7, clang++-8, clang++-9, clang++-10]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: sudo apt-get update || true;
sudo apt-get install clang-6.0 clang-7 clang-8 clang-9 clang-10 lp-solve;
rm -rf build;
mkdir build;
cd build;
cmake -D CMAKE_CXX_COMPILER=${{ matrix.compilers }} -D CMAKE_CXX_FLAGS=-fsanitize=memory -D CMAKE_CXX_FLAGS=-fsanitize=undefined -D CMAKE_CXX_FLAGS=-g -D DISABLE_NLP_ORACLES=ON -D USE_MKL=OFF ../test;
make;
ctest --verbose;