[Chore] (ci): cache native builds

This commit is contained in:
2026-06-20 12:15:34 +08:00
parent 44f9dcb3a2
commit b637962da0
4 changed files with 99 additions and 6 deletions
+8
View File
@@ -28,6 +28,9 @@ def mobileGlAbiFilters = {
.collect { it.trim() }
.findAll { !it.isEmpty() }
}
def mobileGlCmakeCompilerLauncher = {
(findProperty('mobilegl.cmakeCompilerLauncher') ?: System.getenv('MOBILEGL_CMAKE_COMPILER_LAUNCHER') ?: '') as String
}
android {
namespace 'top.mobilegl.plugin'
@@ -112,6 +115,11 @@ android {
cmake {
path file('src/trace/cpp/CMakeLists.txt')
version '3.22.1'
def compilerLauncher = mobileGlCmakeCompilerLauncher()
if (!compilerLauncher.isEmpty()) {
arguments "-DCMAKE_C_COMPILER_LAUNCHER=${compilerLauncher}",
"-DCMAKE_CXX_COMPILER_LAUNCHER=${compilerLauncher}"
}
}
}