gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit d91ea194bd6261d988e77ca039e6f63ccd630090
parent 565a136dcf28a186c1676f5c76f27cbc5d911987
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sat, 20 Apr 2024 21:06:01 +0200

backup current Jenkins scripts

Diffstat:
Mscripts/Jenkinsfile | 60+++++++++++++++++++++++++++++++++++++-----------------------
Mscripts/JenkinsfileMulti | 10+++++-----
2 files changed, 42 insertions(+), 28 deletions(-)

diff --git a/scripts/Jenkinsfile b/scripts/Jenkinsfile @@ -32,24 +32,19 @@ pipeline { cmakeBuild(); } } - stage('Integration Tests') { - when { - expression { - return params.IntegrationTests - } - } + stage('Pack') { steps { - doIntegrationTests(); + doPack(); } } - stage('Pack') { + stage('Integration Tests') { when { expression { - return params.Deploy || params.Upload + return params.IntegrationTests } } steps { - doPack(); + doIntegrationTests(); } } stage('Deploy') { @@ -87,6 +82,21 @@ def genericSh(cmd) } } +def hasLabel(String label) +{ + def res = false + + env.NODE_LABELS.split(' ').each + { l -> + if (l.equals(label)) + { + res = true + } + } + + return res +} + def formatArg(_arg) { if(isUnix()) @@ -103,13 +113,10 @@ def deleteFile(name) bat "del ${name}" } -def supportTI() -{ - return params.Branch == 'snow' ? 'ON' : 'OFF' -} def needsJuce() { - return params.Deploy || params.Upload ? 'ON' : 'OFF' + //return params.Deploy || params.Upload ? 'ON' : 'OFF' + return true } def buildFxPlugins() { @@ -140,16 +147,23 @@ def doCheckout() def cmakeBuild() { def buildDir = cmakeBuildDir(); - def ti = supportTI(); - dir(cmakeBuildDir()) { - deleteFile('CMakeCache.txt') // we need to do this to be able to change option in the command line below. Otherwise, they won't change for an existing project - } - - genericSh "cmake . -B ${buildDir} -Dgearmulator_BUILD_JUCEPLUGIN=${BUILD_JUCE} -Dgearmulator_BUILD_FX_PLUGIN=${BUILD_FX_PLUGIN} -DCMAKE_BUILD_TYPE=Release -DVIRUS_SUPPORT_TI=${ti}" + withCredentials([file(credentialsId: 'rclone_dsp56300_conf', variable: 'RCLONE_CONF')]) { + if(hasLabel("mac")) { + genericSh "cmake . -G Xcode -B ${buildDir} -Dgearmulator_BUILD_JUCEPLUGIN=${BUILD_JUCE} -Dgearmulator_BUILD_FX_PLUGIN=${BUILD_FX_PLUGIN} -DCMAKE_BUILD_TYPE=Release" + } else { + genericSh "cmake . -B ${buildDir} -Dgearmulator_BUILD_JUCEPLUGIN=${BUILD_JUCE} -Dgearmulator_BUILD_FX_PLUGIN=${BUILD_FX_PLUGIN} -DCMAKE_BUILD_TYPE=Release" + } - dir(cmakeBuildDir()) { - genericSh 'cmake --build . --config Release' + dir(cmakeBuildDir()) { + if(hasLabel("m2")) { + genericSh 'cmake --build . --config Release --parallel 6' + } else if(hasLabel("pi5")) { + genericSh 'cmake --build . --config Release --parallel 2' + } else { + genericSh 'cmake --build . --config Release --parallel 2' + } + } } } diff --git a/scripts/JenkinsfileMulti b/scripts/JenkinsfileMulti @@ -6,12 +6,12 @@ pipeline { booleanParam(name: 'LinuxX86', defaultValue: true, description: '') booleanParam(name: 'Win', defaultValue: true, description: '') booleanParam(name: 'Mac', defaultValue: true, description: '') - choice(name: 'Branch', choices: ['master', 'snow'], description: '') - booleanParam(name: 'FXPlugins', defaultValue: false, description: '') + choice(name: 'Branch', choices: ['osirus', 'ostirus', 'vavra'], description: '') + booleanParam(name: 'FXPlugins', defaultValue: true, description: '') booleanParam(name: 'IntegrationTests', defaultValue: false, description: '') - booleanParam(name: 'Deploy', defaultValue: true, description: '') + booleanParam(name: 'Deploy', defaultValue: false, description: '') booleanParam(name: 'Upload', defaultValue: false, description: '') - choice(name: 'UploadFolder', choices: ['', '/alpha', '/beta'], description: '') + choice(name: 'UploadFolder', choices: ['/internal', '', '/alpha', '/beta', '/donators', ''], description: '') } stages { stage('Prepare') { @@ -23,7 +23,7 @@ pipeline { if(params.LinuxX86) currentBuild.displayName += " Lx" if(params.Mac) currentBuild.displayName += " M" if(params.Win) currentBuild.displayName += " W" - if(params.FXPlugins) currentBuild.displayName += " FX" + if(params.FXPlugins) currentBuild.displayName += " FX" if(params.IntegrationTests) currentBuild.displayName += " i" if(params.Deploy) currentBuild.displayName += " d" if(params.Upload) currentBuild.displayName += " u"