Skip to content

Commit a970d67

Browse files
author
Farah Khashman
committed
update workflows
1 parent 7554c66 commit a970d67

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.github/workflows/build_windows.yaml

+15-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: C/C++ CI Windows
33
on:
44
push:
55
branches: [master]
6+
tags:
7+
- 'v*'
68
release:
79
types: [published]
810
pull_request:
@@ -39,6 +41,16 @@ jobs:
3941
- name: get QuantLib
4042
run: |
4143
git submodule update --init
44+
- name: Set up zlib
45+
run: |
46+
$Url = "https://www.zlib.net/zlib131.zip"
47+
(New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\zlib.zip")
48+
Expand-Archive -Path "$env:TEMP\zlib.zip" -DestinationPath C:\local
49+
cd C:\local\zlib-1.3.1
50+
mkdir build
51+
cd build
52+
cmake ..
53+
cmake --build . --config Release
4254
- name: Set up Boost
4355
run: |
4456
$Url = "https://boostorg.jfrog.io/artifactory/main/release/1.72.0/binaries/boost_1_72_0-msvc-14.2-${{ matrix.boost-lib }}.exe"
@@ -52,11 +64,12 @@ jobs:
5264
run: |
5365
mkdir build
5466
cd build
67+
SET ZLIB_ROOT=C:\local\zlib-1.3.1
5568
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Vc\Auxiliary\Build\vcvarsall.bat" ${{ matrix.arch }} -vcvars_ver=14.3 || exit 1
56-
cmake .. -GNinja -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_INCLUDEDIR=C:\local\boost -DBOOST_LIBRARYDIR=C:\local\boost\lib64-msvc-14.3 -L
69+
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DQL_BUILD_EXAMPLES=false -DQL_BUILD_TEST_SUITE=false -DQL_BUILD_BENCHMARK=false -DQL_ENABLE_SESSIONS=true -DORE_USE_ZLIB=ON -DORE_BUILD_DOC=false -DBOOST_INCLUDEDIR=C:\local\boost -DZLIB_LIBRARY=C:\local\zlib-1.3.1\build\Release\zlib.lib -DBOOST_LIBRARYDIR=C:\local\boost\lib64-msvc-14.3 -L
5770
cmake --build . -j 2 --verbose
5871
- name: Save executables as artifacts
59-
#if: startsWith(github.ref, 'refs/tags/v')
72+
if: startsWith(github.ref, 'refs/tags/v')
6073
uses: actions/upload-artifact@v3
6174
with:
6275
name: ore-windows-${{ matrix.arch }}

.github/workflows/linux_build.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: C/C++ CI Ubuntu
33
on:
44
push:
55
branches: [master]
6+
tags:
7+
- 'v*'
68
release:
79
types: [published]
810
pull_request:

.github/workflows/macos_ARM64_build.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: C/C++ MacOS
33
on:
44
push:
55
branches: [master]
6+
tags:
7+
- 'v*'
68
release:
79
types: [published]
810
pull_request:

0 commit comments

Comments
 (0)