Skip to content

Commit 691eba6

Browse files
committed
Workaround mozilla/sccache problem
1 parent 016e090 commit 691eba6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ci/install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ if [[ "$os_family" == "Linux" ]]; then
2222
if [[ "${VCPKG_VERSION:-}" != "" ]]; then # vcpkg build
2323
"$ci_dir/install-ubuntu-vcpkg.sh"
2424
else
25+
# workaround for mozilla/sccache action problem /bin/sh: 1: sccache: not found when running `sudo make install`
26+
if [[ "${CMAKE_C_COMPILER_LAUNCHER:-}" == "sccache" ]]; then
27+
export CMAKE_C_COMPILER_LAUNCHER="$(which sccache)"
28+
fi
29+
if [[ "${CMAKE_CXX_COMPILER_LAUNCHER:-}" == "sccache" ]]; then
30+
export CMAKE_CXX_COMPILER_LAUNCHER="$(which sccache)"
31+
fi
2532
"$ci_dir/install-ubuntu.sh"
2633
fi
2734
elif [[ "$os_family" == "macOS" ]]; then

0 commit comments

Comments
 (0)