Add jenkinsfile for pipeline build and dockerfile for build

Signed-off-by: brian <brian@brutex.de>
master
Brian Rosenberger 2022-10-26 19:22:58 +02:00
parent 2bde6f0975
commit b2acaf8062
4 changed files with 17 additions and 25 deletions

View File

@ -114,7 +114,7 @@ allprojects { Project proj ->
/* Need to verify the property exists, as some /* Need to verify the property exists, as some
modules may not declare it (i.e. the java-platform plugin) modules may not declare it (i.e. the java-platform plugin)
*/ */
if (components.hasProperty("java") && !proj.name.equals("cavis-native-lib")) { if (components.hasProperty("java") ) {
from components.java from components.java
} }
} }

View File

@ -21,14 +21,14 @@ dependencies {
&& !sproj.name.equals("Cavis") && !sproj.name.equals("Cavis")
&& !sproj.name.equals("cavis-datavec") && !sproj.name.equals("cavis-datavec")
&& !sproj.name.equals("cavis-dnn") && !sproj.name.equals("cavis-dnn")
&& !sproj.name.equals("cavis-native") && !sproj.name.equals("cavis-native") && !sproj.name.equals("cavis-native-lib")
&& !sproj.name.equals("cavis-nd4j") && !sproj.name.equals("cavis-nd4j")
&& !sproj.name.equals("cavis-ui") && !sproj.name.equals("cavis-ui")
&& !sproj.name.equals("cavis-zoo")) { && !sproj.name.equals("cavis-zoo")) {
api sproj api sproj
} }
} }
api project(path: ":cavis-native:cavis-native-lib", configuration: "runtimeElements") api project(path: ":cavis-native:cavis-native-lib", configuration: "cudaSupportRuntimeElements")
/* /*
api(projects.cavisNative.cavisNativeLib) { api(projects.cavisNative.cavisNativeLib) {
capabilities { capabilities {
@ -76,17 +76,17 @@ tasks.getByName("jar") {
} }
} }
/*
/*
artifacts {
archives customFatJar
}
*/ */
artifacts {
archives shadowJar
}
shadowJar { shadowJar {
enabled false; enabled true;
zip64 true //need this to support jars with more than 65535 entries zip64 true //need this to support jars with more than 65535 entries
classifier null
} }
publishing { publishing {
@ -107,17 +107,6 @@ publishing {
*/ */
} }
} }
task printDeps {
doLast {
configurations.api.dependencies.each { dep ->
println "${dep.group} - ${dep.name} - ${dep.version}"
dep.artifacts.each { art ->
println " ${art.extension} - ${art.classifier}"
}
}
}
}
} }

View File

@ -459,6 +459,7 @@ javadoc {
} }
artifacts { artifacts {
//implementation(jar)
chipList.each { thisChip -> chipList.each { thisChip ->
implementation(tasks.getByName("${thisChip}SupportJar")) implementation(tasks.getByName("${thisChip}SupportJar"))
} }
@ -473,7 +474,7 @@ artifacts {
} }
*/ */
/*
publishing { publishing {
publications { publications {
mavenJava(MavenPublication) { mavenJava(MavenPublication) {
@ -484,8 +485,8 @@ publishing {
} }
} }
} }
*/
/*
if( osdetector.os.startsWith("windows")) { if( osdetector.os.startsWith("windows")) {
@ -508,7 +509,7 @@ if( osdetector.os.startsWith("windows")) {
} }
} }
} }
*/
task printDeps { task printDeps {
doLast { doLast {

View File

@ -21,6 +21,8 @@
ext { ext {
chip = (properties.CAVIS_CHIP ?: "cuda,cpu").toLowerCase() //the default is to build for CPU and CUDA chip = (properties.CAVIS_CHIP ?: "cuda,cpu").toLowerCase() //the default is to build for CPU and CUDA
testChip = (properties.CAVIS_TEST_CHIP ?: " ").toLowerCase() //the default is without specific backend testChip = (properties.CAVIS_TEST_CHIP ?: " ").toLowerCase() //the default is without specific backend
logger.quiet("Building for chips ${chip} and running tests with backends for ${testChip}")
chipList = chip.split(",") chipList = chip.split(",")
testChipList = testChip.split(",") testChipList = testChip.split(",")