Move macOS to parallel stage

This commit is contained in:
sholdee 2022-06-22 14:12:42 -05:00 committed by Kenix3
parent e42b18cf71
commit bd22074ec8
1 changed files with 31 additions and 34 deletions

65
Jenkinsfile vendored
View File

@ -120,41 +120,38 @@ pipeline {
} }
} }
} }
} stage ('Build macOS') {
} agent {
stage ('Build macOS') { label "SoH-Mac-Builders"
agent { }
label "SoH-Mac-Builders" steps {
} checkout([
steps { $class: 'GitSCM',
checkout([ branches: scm.branches,
$class: 'GitSCM', doGenerateSubmoduleConfigurations: scm.doGenerateSubmoduleConfigurations,
branches: scm.branches, extensions: scm.extensions,
doGenerateSubmoduleConfigurations: scm.doGenerateSubmoduleConfigurations, userRemoteConfigs: scm.userRemoteConfigs
extensions: scm.extensions, ])
userRemoteConfigs: scm.userRemoteConfigs catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
]) sh '''
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { cp ../../ZELOOTD.z64 OTRExporter/baserom_non_mq.z64
sh ''' cd soh
cp ../../ZELOOTD.z64 OTRExporter/baserom_non_mq.z64 make setup -j4 DEBUG=0 CC=gcc-12 CXX=g++-12
make -j4 DEBUG=0 CC=gcc-12 CXX=g++-12
cd soh make -j4 appbundle
make setup -j4 DEBUG=0 CC=gcc-12 CXX=g++-12 mv ../README.md readme.txt
make -j4 DEBUG=0 CC=gcc-12 CXX=g++-12 7z a soh-mac.7z soh.app readme.txt
'''
make -j4 appbundle }
archiveArtifacts artifacts: 'soh/soh-mac.7z', followSymlinks: false, onlyIfSuccessful: true
mv ../README.md readme.txt }
7z a soh-mac.7z soh.app readme.txt post {
''' always {
} step([$class: 'WsCleanup']) // Clean workspace
archiveArtifacts artifacts: 'soh/soh-mac.7z', followSymlinks: false, onlyIfSuccessful: true }
} }
post {
always {
step([$class: 'WsCleanup']) // Clean workspace
} }
} }
} }
} }
} }