-
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.
Clean up CMakePresets and fix Windows build
* Removed duplication in CMakePresets conda stuff * Made the inheritance logic in CMakePresets clear * Explicit set VCPKG_ROOT and add our vcpkg directory to PATH due to changes in Visual Studio 17.6
- Loading branch information
Showing
5 changed files
with
84 additions
and
158 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,14 +62,6 @@ jobs: | |
version: "~= 22.8" | ||
src: "./python" | ||
|
||
- name: Extra envs | ||
run: | | ||
. build_tooling/vcpkg_caching.sh # Linux follower needs another call in CIBW | ||
echo -e "VCPKG_BINARY_SOURCES=$VCPKG_BINARY_SOURCES\n${{matrix.envs || ''}}" | tee -a $GITHUB_ENV | ||
cmake -P cpp/CMake/CpuCount.cmake | sed 's/^-- //' | tee -a $GITHUB_ENV | ||
env: | ||
CMAKE_BUILD_PARALLEL_LEVEL: ${{vars.CMAKE_BUILD_PARALLEL_LEVEL}} | ||
|
||
- name: Configure sccache | ||
uses: mozilla-actions/[email protected] | ||
with: | ||
|
@@ -88,6 +80,17 @@ jobs: | |
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: | | ||
. build_tooling/vcpkg_caching.sh # Linux follower 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 | ||
env: | ||
CMAKE_BUILD_PARALLEL_LEVEL: ${{vars.CMAKE_BUILD_PARALLEL_LEVEL}} | ||
|
||
# ========================= Leader steps ========================= | ||
- name: Prepare C++ compilation env | ||
if: inputs.job_type != 'follower' | ||
|
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