Skip to content

Commit

Permalink
update windows workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Farah Khashman committed Jun 18, 2024
1 parent d772337 commit 0c82e14
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/build_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
branches: [master]
types: [ready_for_review, opened, synchronize, reopened]
paths:
- .github/workflows/linux_build.yaml
- ./App/**
- ./OREAnalytics/**
- '!./OREAnalytics/doc/**'
Expand Down Expand Up @@ -41,16 +40,6 @@ jobs:
- name: get QuantLib
run: |
git submodule update --init
- name: Set up zlib
run: |
$Url = "https://www.zlib.net/zlib131.zip"
(New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\zlib.zip")
Expand-Archive -Path "$env:TEMP\zlib.zip" -DestinationPath C:\local
cd C:\local\zlib-1.3.1
mkdir build
cd build
cmake ..
cmake --build . --config Release
- name: Set up Boost
run: |
$Url = "https://boostorg.jfrog.io/artifactory/main/release/1.72.0/binaries/boost_1_72_0-msvc-14.2-${{ matrix.boost-lib }}.exe"
Expand All @@ -64,9 +53,8 @@ jobs:
run: |
mkdir build
cd build
SET ZLIB_ROOT=C:\local\zlib-1.3.1
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Vc\Auxiliary\Build\vcvarsall.bat" ${{ matrix.arch }} -vcvars_ver=14.3 || exit 1
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
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Vc\Auxiliary\Build\vcvarsall.bat" ${{ matrix.arch }} -vcvars_ver=14.2 || exit 1
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\lib${{ matrix.boost-lib }}-msvc-14.2 -L
cmake --build . -j 2 --verbose
- name: Save executables as artifacts
if: startsWith(github.ref, 'refs/tags/v')
Expand Down

0 comments on commit 0c82e14

Please sign in to comment.