forked from OpenSourceRisk/Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.23 KB
/
linux_build.yaml
File metadata and controls
51 lines (49 loc) · 1.23 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
name: C/C++ CI Ubuntu
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
name: building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
#token: ${{ secrets.ORG_ACTIONS_ACCESS_1 }}
- name: set up dependencies
run: |
sudo apt update
sudo apt install -y \
libboost-all-dev \
libboost-test-dev \
ninja-build \
zlib1g-dev \
libeigen3-dev \
libbz2-dev \
liblzma-dev
- name: cmake configure
run : |
mkdir build
cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=false \
-DBoost_USE_STATIC_RUNTIME=OFF \
-DQL_BUILD_EXAMPLES=false \
-DORE_PYTHON_INTEGRATION=ON \
-DQL_BUILD_TEST_SUITE=false \
-DQL_BUILD_BENCHMARK=false \
-DQL_ENABLE_SESSIONS=true \
-DORE_BUILD_DOC=false \
-DORE_BUILD_SWIG=false \
-DCMAKE_POLICY_DEFAULT_CMP0167=NEW \
-G "Ninja" \
..
- name: cmake build
run: |
cd build
pwd
cmake --build . -j $(nproc)