Skip to content

Commit cd05674

Browse files
committed
try to compile ofGen in Windows in CI with compiler cache (very specific one)
1 parent 6c9c939 commit cd05674

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ofGen/compile.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,12 @@ if command -v cmake &> /dev/null; then
9494
else
9595
# cmake not found. lets go for the alternative.
9696
if command -v chalet &> /dev/null; then
97-
chalet bundle &&
97+
CCACHE_PARAM=""
98+
if [[ "${CI:-false}" == "true" ]]; then
99+
CCACHE_PARAM=" --compiler-cache"
100+
fi
101+
102+
chalet bundle ${CCACHE_PARAM} &&
98103
if [[ -d "./dist" ]]; then
99104
DIST_PATH=$(cygpath -w "$(pwd)/dist")
100105
powershell.exe -ExecutionPolicy Bypass -Command "

0 commit comments

Comments
 (0)