Skip to content

Commit 7db4c36

Browse files
Copilotkirklandsign
andcommitted
Guard sccache launcher exports in android release build-aar
Co-authored-by: kirklandsign <107070759+kirklandsign@users.noreply.github.com> Agent-Logs-Url: https://github.com/pytorch/executorch/sessions/d70da9ba-dce7-40f4-9e9d-32f6e0d20cde
1 parent bcce37a commit 7db4c36

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/android-release-artifacts.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ jobs:
9292
run: |
9393
set -eux
9494
95-
# Use sccache for NDK compiler as well
96-
export CMAKE_CXX_COMPILER_LAUNCHER=sccache
97-
export CMAKE_C_COMPILER_LAUNCHER=sccache
95+
# Use sccache for NDK/compiler builds when available.
96+
if command -v sccache >/dev/null 2>&1; then
97+
export CMAKE_CXX_COMPILER_LAUNCHER=sccache
98+
export CMAKE_C_COMPILER_LAUNCHER=sccache
99+
fi
98100
99101
# The generic Linux job chooses to use base env, not the one setup by the image
100102
eval "$(conda shell.bash hook)"

0 commit comments

Comments
 (0)