Skip to content

Commit 9475cc5

Browse files
committed
Improve CI workflows: add cleanup of partial/failed clones for tinygltf and KTX dependencies before retrying builds.
1 parent 361faea commit 9475cc5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/simple_engine_ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ jobs:
337337
338338
# build tinygltf
339339
if [ ! -f "${LOCAL_INSTALL}/lib/cmake/tinygltf/tinygltfConfig.cmake" ]; then
340+
# Clean up any partial/failed clones before re-attempting
341+
rm -rf "${WORK_ROOT}/tinygltf" "${WORK_ROOT}/tinygltf-build"
340342
git clone --depth 1 https://github.com/syoyo/tinygltf.git "${WORK_ROOT}/tinygltf"
341343
cmake -S "${WORK_ROOT}/tinygltf" -B "${WORK_ROOT}/tinygltf-build" -G Ninja \
342344
-DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF \
@@ -348,6 +350,8 @@ jobs:
348350
349351
# build ktx
350352
if [ ! -f "${LOCAL_INSTALL}/lib/cmake/KTX/KTXConfig.cmake" ]; then
353+
# Clean up any partial/failed clones before re-attempting
354+
rm -rf "${WORK_ROOT}/KTX-Software" "${WORK_ROOT}/KTX-Software-build"
351355
git clone --depth 1 --branch v4.3.2 https://github.com/KhronosGroup/KTX-Software.git "${WORK_ROOT}/KTX-Software"
352356
cmake -S "${WORK_ROOT}/KTX-Software" -B "${WORK_ROOT}/KTX-Software-build" -G Ninja \
353357
-DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF \

0 commit comments

Comments
 (0)