Skip to content

Commit 3cf9ae2

Browse files
committed
Add build_windows.yaml
1 parent 61e6886 commit 3cf9ae2

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: C/C++ CI Windows
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
name: building
10+
runs-on: windows-2022
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: get QuantLib
14+
run: |
15+
git submodule update --init
16+
- name: Set up Boost
17+
run: |
18+
choco install -y boost-msvc-14.3
19+
choco install -y ninja
20+
- name: cmake configure
21+
run : |
22+
mkdir build
23+
cd build
24+
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 -DBOOST_ROOT="C:\ProgramData\chocolatey\lib\boost" -G "Ninja" ..
25+
- name: cmake build
26+
run: |
27+
cd build/
28+
pwd;
29+
cmake --build . -j $NUMBER_OF_PROCESSORS

0 commit comments

Comments
 (0)