1
0
forked from mirrors/0ad

Add JOBS support to Unix build pipelines

Allow the number of concurrent build jobs in Unix build pipelines be
specified in the environment via the JOBS variable.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-03-05 21:14:17 +01:00
parent df5fee6103
commit 2a0817d930
4 changed files with 15 additions and 15 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2024 Wildfire Games.
/* Copyright (C) 2025 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -53,9 +53,9 @@ pipeline {
stage("Compile Native macOS Executable") {
steps {
sh "cd libraries/ && MIN_OSX_VERSION=${env.MIN_OSX_VERSION} ./build-macos-libs.sh --force-rebuild"
sh "cd libraries/ && MIN_OSX_VERSION=${env.MIN_OSX_VERSION} ./build-macos-libs.sh ${JOBS} --force-rebuild"
sh "cd build/workspaces/ && ./update-workspaces.sh --macosx-version-min=${env.MIN_OSX_VERSION}"
sh "cd build/workspaces/gcc/ && make"
sh "cd build/workspaces/gcc/ && make ${JOBS}"
sh "svn cleanup --remove-unversioned build"
sh "svn cleanup --remove-unversioned libraries"
}
@@ -94,10 +94,10 @@ pipeline {
HOSTTYPE = "x86_64"
}
steps {
sh "cd libraries/ && MIN_OSX_VERSION=${env.MIN_OSX_VERSION} ./build-macos-libs.sh --force-rebuild"
sh "cd libraries/ && MIN_OSX_VERSION=${env.MIN_OSX_VERSION} ./build-macos-libs.sh ${JOBS} --force-rebuild"
sh "cd build/workspaces/ && ./update-workspaces.sh --macosx-version-min=${env.MIN_OSX_VERSION}"
sh "cd build/workspaces/gcc/ && make clean"
sh "cd build/workspaces/gcc/ && make"
sh "cd build/workspaces/gcc/ && make ${JOBS}"
sh "svn cleanup --remove-unversioned build"
sh "svn cleanup --remove-unversioned libraries"
}
+3 -3
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2024 Wildfire Games.
/* Copyright (C) 2025 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -46,7 +46,7 @@ pipeline {
sh "git lfs pull -I binaries/data/tests"
sh "git lfs pull -I \"binaries/data/mods/_test.*\""
sh "libraries/build-source-libs.sh 2> freebsd-prebuild-errors.log"
sh "libraries/build-source-libs.sh ${JOBS} 2> freebsd-prebuild-errors.log"
sh "build/workspaces/update-workspaces.sh --jenkins-tests 2>> freebsd-prebuild-errors.log"
script {
@@ -64,7 +64,7 @@ pipeline {
stage ("Release Build") {
steps {
sh "cd build/workspaces/gcc/ && gmake config=release"
sh "cd build/workspaces/gcc/ && gmake ${JOBS} config=release"
}
post {
failure {
+3 -3
View File
@@ -69,7 +69,7 @@ pipeline {
sh "git lfs pull -I binaries/data/tests"
sh "git lfs pull -I \"binaries/data/mods/_test.*\""
sh "libraries/build-source-libs.sh 2> ${JENKINS_COMPILER}-prebuild-errors.log"
sh "libraries/build-source-libs.sh ${JOBS} 2> ${JENKINS_COMPILER}-prebuild-errors.log"
sh "build/workspaces/update-workspaces.sh --jenkins-tests 2>> ${JENKINS_COMPILER}-prebuild-errors.log"
@@ -89,7 +89,7 @@ pipeline {
stage("Debug Build") {
steps {
sh "cd build/workspaces/gcc/ && make config=debug"
sh "cd build/workspaces/gcc/ && make ${JOBS} config=debug"
}
post {
failure {
@@ -115,7 +115,7 @@ pipeline {
stage("Release Build") {
steps {
sh "cd build/workspaces/gcc/ && make config=release"
sh "cd build/workspaces/gcc/ && make ${JOBS} config=release"
}
}
+4 -4
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2024 Wildfire Games.
/* Copyright (C) 2025 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -40,7 +40,7 @@ pipeline {
sh "git lfs pull -I binaries/data/tests"
sh "git lfs pull -I \"binaries/data/mods/_test.*\""
sh "libraries/build-macos-libs.sh 2> macos-prebuild-errors.log"
sh "libraries/build-macos-libs.sh ${JOBS} 2> macos-prebuild-errors.log"
sh "build/workspaces/update-workspaces.sh --jenkins-tests 2>> macos-prebuild-errors.log"
script {
@@ -59,7 +59,7 @@ pipeline {
stage("Debug Build") {
steps {
sh "cd build/workspaces/gcc/ && make config=debug"
sh "cd build/workspaces/gcc/ && make ${JOBS} config=debug"
}
post {
failure {
@@ -85,7 +85,7 @@ pipeline {
stage("Release Build") {
steps {
sh "cd build/workspaces/gcc/ && make config=release"
sh "cd build/workspaces/gcc/ && make ${JOBS} config=release"
}
}