2
0
Эх сурвалжийг харах

CI - also cleanup the jetified Urho3D AAR.
Otherwise the total cache size may exit the 5GB limit and undesired cache eviction starts to happen.

Yao Wei Tjong 姚伟忠 5 жил өмнө
parent
commit
0e8ab24c16

+ 7 - 1
.github/workflows/main.yml

@@ -117,7 +117,13 @@ jobs:
           script/dockerized.sh ${PLATFORM/-*} rake test
           script/dockerized.sh ${PLATFORM/-*} rake test
         if: matrix.platform == 'android' || (startsWith(matrix.platform, 'linux') && matrix.platform != 'linux-clang-tidy' && matrix.platform != 'linux-clang-format')
         if: matrix.platform == 'android' || (startsWith(matrix.platform, 'linux') && matrix.platform != 'linux-clang-tidy' && matrix.platform != 'linux-clang-format')
       - name: Scaffolding - cleanup
       - name: Scaffolding - cleanup
-        run: if [[ $PLATFORM == android ]]; then rm -rf build/cache/.m2; else rm -rf build/cache/{stage,projects}; fi
+        run: |
+          if [[ $PLATFORM == android ]]; then
+            rm -rf build/cache/.m2
+            find build/cache/.gradle -name \*urho3d\* |xargs rm -rf
+          else
+            rm -rf build/cache/{stage,projects}
+          fi
         if: matrix.platform != 'linux-clang-tidy' && matrix.platform != 'linux-clang-format'
         if: matrix.platform != 'linux-clang-tidy' && matrix.platform != 'linux-clang-format'
       - name: Package
       - name: Package
         run: script/dockerized.sh ${PLATFORM/-*} rake package
         run: script/dockerized.sh ${PLATFORM/-*} rake package