-
Notifications
You must be signed in to change notification settings - Fork 99
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 697af60
Showing
5 changed files
with
38 additions
and
30 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,26 @@ 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" | ||
echo -e "CC=\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.41.34120\\bin\\Hostx64\\x64\\cl.exe\"\n" >> "${GITHUB_ENV}" | ||
echo -e "CXX=\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.41.34120\\bin\\Hostx64\\x64\\cl.exe\"\n" >> "${GITHUB_ENV}" | ||
echo -e "CMAKE_C_COMPILER=\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.41.34120\\bin\\Hostx64\\x64\\cl.exe\"\n" >> "${GITHUB_ENV}" | ||
echo -e "CMAKE_CXX_COMPILER=\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.41.34120\\bin\\Hostx64\\x64\\cl.exe\"\n" >> "${GITHUB_ENV}" | ||
echo -e "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.41.34120\\bin\\Hostx64\\x64\\" >> "${GITHUB_PATH}" | ||
echo -e "CMAKE_GENERATOR_TOOLSET=v143,version=14.41\n" >> "${GITHUB_ENV}" | ||
- name: Print vswhere | ||
run: | | ||
vswhere -all | ||
#- 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,25 +101,21 @@ 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 | ||
run: | | ||
HOME=~ . build_tooling/vcpkg_caching.sh # Linux build-python-wheels needs another call in CIBW | ||
echo -e "VCPKG_BINARY_SOURCES=$VCPKG_BINARY_SOURCES | ||
VCPKG_ROOT=$PLATFORM_VCPKG_ROOT | ||
${{matrix.envs || ''}}" | tee -a $GITHUB_ENV | ||
cmake -P cpp/CMake/CpuCount.cmake | sed 's/^-- //' | tee -a $GITHUB_ENV | ||
echo -e "VCPKG_BINARY_SOURCES=$VCPKG_BINARY_SOURCES\n" >> $GITHUB_ENV | ||
echo -e "${{matrix.envs || ''}}\n" >> $GITHUB_ENV | ||
echo -e "VCPKG_ROOT=$PLATFORM_VCPKG_ROOT\n" >> $GITHUB_ENV | ||
cmake -P cpp/CMake/CpuCount.cmake | sed 's/^-- //' >> $GITHUB_ENV | ||
env: | ||
CMAKE_BUILD_PARALLEL_LEVEL: ${{vars.CMAKE_BUILD_PARALLEL_LEVEL}} | ||
|
||
|
@@ -123,13 +139,13 @@ 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' | ||
# 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', '-T v143,version=14.41']" | ||
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
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