forked from OpenSourceRisk/Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.37 KB
/
linux_build.yaml
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
name: C/C++ CI Ubuntu
on:
push:
branches: [master]
tags:
- 'v*'
release:
types: [published]
pull_request:
branches: [master]
types: [ready_for_review, opened, synchronize, reopened]
paths:
- .github/workflows/linux_build.yaml
- ./App/**
- ./OREAnalytics/**
- '!./OREAnalytics/doc/**'
- ./OREData/**
- '!./OREData/doc/**'
- ./ORETest/**
- ./QuantExt/**
- '!./QuantExt/doc/**'
- CMakeLists.txt
workflow_dispatch:
jobs:
build:
name: building
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: get QuantLib
run: |
git submodule update --init
- name: Set up Boost
run: |
sudo apt update
sudo apt install -y libboost-all-dev libboost-test-dev ninja-build
- name: cmake configure
run : mkdir build; cd build; cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=false -DQL_BUILD_EXAMPLES=false -DQL_BUILD_TEST_SUITE=false -DQL_BUILD_BENCHMARK=false -DQL_ENABLE_SESSIONS=true -DORE_BUILD_DOC=false -G "Ninja" ..
- name: cmake build
run: cd build/; pwd; cmake --build . -j $(nproc)
- name: Save executables as artifacts
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-artifact@v4
with:
name: ore-exe-linux
path: /home/runner/work/Engine/Engine/build/App/ore