-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Followed guidelines from ccache wiki, using the "masquerading" technique, by copying ccache.exe to cl.exe - Removed hard coded /Zi flag, which is not supported by ccache, and which should anyway be left to handle by cmake according to the build type Signed-off-by: Sylvain Leclerc <[email protected]>
- Loading branch information
Showing
2 changed files
with
21 additions
and
2 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 |
---|---|---|
|
@@ -41,6 +41,24 @@ jobs: | |
run: | | ||
choco install wget unzip zip --no-progress | ||
# Downloads ccache, and copies it to "cl.exe" in order to trick cmake into using it, | ||
# see ccache wiki for background on using it with MSVC: | ||
# https://github.com/ccache/ccache/wiki/MS-Visual-Studio | ||
- name: Install ccache | ||
shell: bash | ||
run: | | ||
wget https://github.com/ccache/ccache/releases/download/v4.8.3/ccache-4.8.3-windows-x86_64.zip -O ccache.zip | ||
unzip ccache.zip | ||
rm ccache.zip | ||
mv ccache-4.8.3-windows-x86_64 ccache | ||
cp ccache/ccache.exe ccache/cl.exe | ||
echo "${GITHUB_WORKSPACE}/ccache" >> $GITHUB_PATH | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: windows | ||
|
||
- name : Init VCPKG submodule | ||
run: | | ||
git submodule update --init vcpkg | ||
|
@@ -115,7 +133,8 @@ jobs: | |
-DBUILD_TESTING=ON \ | ||
-DBUILD_TOOLS=ON \ | ||
-DBUILD_not_system=OFF \ | ||
-DPython3_EXECUTABLE='${{ steps.setup-python.outputs.python-path }}' | ||
-DPython3_EXECUTABLE='${{ steps.setup-python.outputs.python-path }}' \ | ||
-DCMAKE_VS_GLOBALS="CLToolExe=cl.exe;CLToolPath=${GITHUB_WORKSPACE}/ccache;TrackFileAccess=false;UseMultiToolTask=true;DebugInformationFormat=OldStyle" | ||
- name: Build | ||
shell: bash | ||
|
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