initial commit
This commit is contained in:
34
src/org/SHS/SDK.groovy
Normal file
34
src/org/SHS/SDK.groovy
Normal file
@@ -0,0 +1,34 @@
|
||||
package org.SHS
|
||||
|
||||
@Library('SHS.Platforms') _
|
||||
class SDK {
|
||||
def steps
|
||||
def pl
|
||||
|
||||
public SDK(steps) {
|
||||
this.steps = steps
|
||||
this.pl = new org.SHS.Platforms(this.steps)
|
||||
}
|
||||
|
||||
public void build() {
|
||||
steps.stage("Download sources") {
|
||||
steps.checkout scm
|
||||
}
|
||||
//pl.get()
|
||||
pl._root = steps.readJSON(file: '${env.SHSSDK_DIR}/platforms.json')
|
||||
pl.forEach ({ dist, cmake_toolchain ->
|
||||
print("compile in ${dist.docker_image} with arg ${cmake_toolchain}")
|
||||
/*steps.docker.image("${dist.docker_image}-shssdk").inside() {
|
||||
steps.sh "rm -rf ./release"
|
||||
steps.sh "mkdir -p build"
|
||||
steps.sh "cd build && rm -rf ./* && cmake -G Ninja ${toolchain} -DBUILD_NUMBER=${env.BUILD_NUMBER} -DCMAKE_INSTALL_PREFIX=../release ../src"
|
||||
steps.sh "cd build && cmake --build ./ --target install -j${env.JOBS_COUNT}"
|
||||
steps.archiveArtifacts 'release/*/*/*'
|
||||
steps.sh 'rm -rf ./build ./bin ./release ./builds'
|
||||
},
|
||||
//whiteList: ["ubuntu", "debian", "osx"],
|
||||
blackList: ["android"]*/
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user