Skip to content

Commit fa00ee1

Browse files
committed
Merge remote-tracking branch 'model-validation/feature/add-github-action-workflow' into gh_179_180_182_183
2 parents 4530ea5 + 4639dc4 commit fa00ee1

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/linux_build.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: master
6+
pull_request:
7+
branches: master
8+
types: [ready_for_review, opened, synchronize, reopened]
9+
paths:
10+
- .github/workflows/linux_build.yaml
11+
- ./App/**
12+
- ./OREAnalytics/**
13+
- '!./OREAnalytics/doc/**'
14+
- ./OREData/**
15+
- '!./OREData/doc/**'
16+
- ./ORETest/**
17+
- ./QuantExt/**
18+
- '!./QuantExt/doc/**'
19+
- CMakeLists.txt
20+
workflow_dispatch:
21+
22+
jobs:
23+
build:
24+
name: building
25+
runs-on: ubuntu-22.04
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: get QuantLib
29+
run: |
30+
git submodule update --init
31+
- name: Set up Boost
32+
run: |
33+
sudo apt update
34+
sudo apt install -y libboost-all-dev libboost-test-dev
35+
- name: cmake configure
36+
run : mkdir build; cd build; cmake -DCMAKE_BUILD_TYPE=Release -DQL_BUILD_EXAMPLES=false -DQL_BUILD_TEST_SUITE=false -DQL_BUILD_BENCHMARK=false -DQL_ENABLE_SESSIONS=true -DORE_BUILD_DOC=false -G "Ninja" ..
37+
- name: cmake build
38+
run: cd build/; pwd; cmake --build . -j $(nproc)

0 commit comments

Comments
 (0)