work, please

This commit is contained in:
2023-11-19 22:54:49 +03:00
parent ca3983a4d9
commit 973b9c9dd8

View File

@@ -22,9 +22,12 @@ class SDK {
//steps.print("file: /${steps.env.SHSSDK_DIR}/platforms.json")
def taglist = steps.sh(script: "cd \"${steps.env.SHSSDK_DIR}\" && ls -1d */", returnStdout: true).trim().split('\n')
for (tag in taglist) {
if (!tag.startsWith('v') || !tag.endsWith('/')) continue
for (dir in taglist) {
if (!dir.startsWith('v') || !dir.endsWith('/')) continue
try {
def tag = dir.trim()
tag = tag.substring(0, tag.length() - 1)
steps.print("build for \"${tag}\"")
pl._root = steps.readJSON(file: "${steps.env.SHSSDK_DIR}/${tag}/platforms.json")
pl.forEach ({ dist, cmake_toolchain ->
//steps.print("compile in ${dist.docker_image} with arg ${cmake_toolchain}")