Skip to content

Commit

Permalink
Run cmake CI builds on VC++ 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Feb 14, 2022
1 parent e53c82a commit ca54352
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cmake.yml
Expand Up @@ -40,17 +40,17 @@ jobs:
cd build
./test-suite/quantlib-test-suite --log_level=message
cmake-win:
runs-on: windows-2019
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: Setup
run: |
$Url = "https://boostorg.jfrog.io/artifactory/main/release/1.75.0/binaries/boost_1_75_0-msvc-14.2-64.exe"
$Url = "https://boostorg.jfrog.io/artifactory/main/release/1.78.0/binaries/boost_1_78_0-msvc-14.3-64.exe"
(New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\boost.exe")
Start-Process -Wait -FilePath "$env:TEMP\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=C:\local\boost-1.75.0"
Start-Process -Wait -FilePath "$env:TEMP\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=C:\local\boost-1.78.0"
- name: Compile
env:
BOOST_ROOT: C:\local\boost-1.75.0
BOOST_ROOT: C:\local\boost-1.78.0
run: |
mkdir build
cd build
Expand All @@ -61,17 +61,17 @@ jobs:
cd build
.\test-suite\Release\quantlib-test-suite --log_level=message
cmake-win-with-options:
runs-on: windows-2019
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: Setup
run: |
$Url = "https://boostorg.jfrog.io/artifactory/main/release/1.75.0/binaries/boost_1_75_0-msvc-14.2-64.exe"
$Url = "https://boostorg.jfrog.io/artifactory/main/release/1.78.0/binaries/boost_1_78_0-msvc-14.3-64.exe"
(New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\boost.exe")
Start-Process -Wait -FilePath "$env:TEMP\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=C:\local\boost-1.75.0"
Start-Process -Wait -FilePath "$env:TEMP\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=C:\local\boost-1.78.0"
- name: Compile
env:
BOOST_ROOT: C:\local\boost-1.75.0
BOOST_ROOT: C:\local\boost-1.78.0
run: |
cmake --preset windows-ci-build-with-nonstandard-options
cmake --build --preset windows-ci-build-with-nonstandard-options
Expand Down
6 changes: 3 additions & 3 deletions CMakePresets.json
Expand Up @@ -40,7 +40,7 @@
{
"name": "windows-clang-x64",
"binaryDir": "${sourceDir}/build",
"generator": "Visual Studio 16 2019",
"generator": "Visual Studio 17 2022",
"toolset": "ClangCL",
"architecture": {
"value": "x64",
Expand All @@ -58,7 +58,7 @@
{
"name": "windows-msvc-x64",
"binaryDir": "${sourceDir}/build",
"generator": "Visual Studio 16 2019",
"generator": "Visual Studio 17 2022",
"architecture": {
"value": "x64",
"strategy": "external"
Expand Down Expand Up @@ -91,7 +91,7 @@
{
"name": "windows-ci-build-with-nonstandard-options",
"binaryDir": "${sourceDir}/build",
"generator": "Visual Studio 16 2019",
"generator": "Visual Studio 17 2022",
"architecture": {
"value": "x64",
"strategy": "external"
Expand Down

0 comments on commit ca54352

Please sign in to comment.