Skip to content

Commit a02beaa

Browse files
committed
try to fix ccache with msvc
1 parent 0ff7e0c commit a02beaa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/of.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ jobs:
4949
run: |
5050
ccache --version
5151
52+
- name: Configure ccache for MSVC
53+
if: matrix.platform == 'vs'
54+
shell: bash
55+
run: |
56+
echo "CCACHE_COMPILER_TYPE=msvc" >> $GITHUB_ENV
57+
echo "CCACHE_COMPILERCHECK=content" >> $GITHUB_ENV
58+
echo "CCACHE_SLOPPINESS=pch_defines,time_macros,include_file_mtime,include_file_ctime" >> $GITHUB_ENV
59+
echo "CCACHE_DEPEND=1" >> $GITHUB_ENV
60+
5261
- name: Install zip
5362
if: matrix.platform == 'vs'
5463
run: choco install zip -y
@@ -153,6 +162,8 @@ jobs:
153162
run: |
154163
cd examples/demos/flechilhas
155164
ofgen templates=chalet
165+
echo "\n\n---------\n\n"
166+
156167
chalet bundle --compiler-cache --show-commands
157168
zip -r ofWorks_${{ matrix.platform }}_flechilhas.zip dist/*
158169
gh release upload demo *.zip --clobber

0 commit comments

Comments
 (0)