Skip to content

Commit 08c12d1

Browse files
committed
Merge branch 'github-226' into 'master'
PR-226: Update Github Actions Versions See merge request qs/ore!83
2 parents 29782b3 + f097894 commit 08c12d1

3 files changed

Lines changed: 25 additions & 8 deletions

File tree

.github/workflows/build_windows.yaml

Lines changed: 17 additions & 4 deletions
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:
@@ -35,10 +37,20 @@ jobs:
3537
platform: x64
3638
boost-lib: 64
3739
steps:
38-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v4
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,12 +64,13 @@ 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')
60-
uses: actions/upload-artifact@v3
72+
if: startsWith(github.ref, 'refs/tags/v')
73+
uses: actions/upload-artifact@v4
6174
with:
6275
name: ore-windows-${{ matrix.arch }}
6376
path: D:\a\Engine\Engine\build\App\ore.exe

.github/workflows/linux_build.yaml

Lines changed: 4 additions & 2 deletions
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:
@@ -26,7 +28,7 @@ jobs:
2628
name: building
2729
runs-on: ubuntu-22.04
2830
steps:
29-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3032
- name: get QuantLib
3133
run: |
3234
git submodule update --init
@@ -40,7 +42,7 @@ jobs:
4042
run: cd build/; pwd; cmake --build . -j $(nproc)
4143
- name: Save executables as artifacts
4244
if: startsWith(github.ref, 'refs/tags/v')
43-
uses: actions/upload-artifact@v3
45+
uses: actions/upload-artifact@v4
4446
with:
4547
name: ore-exe-linux
4648
path: /home/runner/work/Engine/Engine/build/App/ore

.github/workflows/macos_ARM64_build.yaml

Lines changed: 4 additions & 2 deletions
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:
@@ -25,7 +27,7 @@ jobs:
2527
build:
2628
runs-on: macos-11
2729
steps:
28-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
2931
- name: get QuantLib
3032
run: |
3133
git submodule update --init
@@ -45,7 +47,7 @@ jobs:
4547
cmake --install .
4648
- name: Save executables as artifacts
4749
if: startsWith(github.ref, 'refs/tags/v')
48-
uses: actions/upload-artifact@v3
50+
uses: actions/upload-artifact@v4
4951
with:
5052
name: ore-macos-arm64
5153
path: /Users/runner/work/Engine/Engine/build/App/ore

0 commit comments

Comments
 (0)