-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vasil Pashov
committed
Nov 20, 2024
1 parent
8ee3763
commit 96eb298
Showing
4 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,18 @@ jobs: | |
defaults: | ||
run: {shell: bash} | ||
steps: | ||
- name: Download VS2022 BuildTools 17.11.5 | ||
if: matrix.os == 'windows' | ||
run: | | ||
choco install -y visualstudio2022buildtools --version=117.11.5 --params "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --installChannelUri https://aka.ms/vs/17/release/150476627_138095015/channel" | ||
choco install -y ninja | ||
#- name: Enable Windows compiler commands | ||
# if: matrix.os == 'windows' | ||
# uses: ilammy/[email protected] | ||
# with: | ||
# toolset: 14.41 | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -81,16 +93,12 @@ jobs: | |
|
||
- name: Windows Pagefile | ||
if: matrix.os == 'windows' | ||
uses: al-cheb/configure-pagefile-action@v1.3 | ||
uses: al-cheb/configure-pagefile-action@v1.4 | ||
with: | ||
minimum-size: 2GB | ||
maximum-size: 6GB | ||
disk-root: "D:" # This is also the checkout directory. Total size 12GB. | ||
continue-on-error: true | ||
|
||
- name: Enable Windows compiler commands | ||
if: matrix.os == 'windows' | ||
uses: ilammy/[email protected] | ||
|
||
- name: Extra envs | ||
# This has to come after msvc-dev-cmd to overwrite the bad VCPKG_ROOT it sets | ||
|
@@ -123,13 +131,16 @@ jobs: | |
run: . build_tooling/prep_cpp_build.sh # Also applies to Windows | ||
|
||
- name: CMake compile | ||
if: inputs.job_type != 'build-python-wheels' | ||
if: inputs.job_type != 'build-python-wheels' && matrix.os == 'windows' | ||
env: | ||
CC: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.41.34120\\bin\\Hostx64\\x64\\cl.exe" | ||
CXX: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.41.34120\\bin\\Hostx64\\x64\\cl.exe" | ||
# We are pinning the version to 10.6 because >= 10.7, use node20 which is not supported in the container | ||
uses: lukka/[email protected] | ||
with: | ||
cmakeListsTxtPath: ${{github.workspace}}/cpp/CMakeLists.txt | ||
configurePreset: ${{env.ARCTIC_CMAKE_PRESET}} | ||
configurePresetAdditionalArgs: "['-DVCPKG_INSTALL_OPTIONS=--clean-after-build']" | ||
configurePresetAdditionalArgs: "['-DVCPKG_INSTALL_OPTIONS=--clean-after-build', '-DCMAKE_C_COMPILER=\"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64\cl.exe\"', '-DCMAKE_CXX_COMPILER=\"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64\cl.exe\"']" | ||
buildPreset: ${{env.ARCTIC_CMAKE_PRESET}} | ||
|
||
- name: Compile C++ tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters