Added Windows target.

This commit is contained in:
Patrick 2023-09-17 15:19:44 +02:00
parent e502932158
commit ed5237ca69
2 changed files with 29 additions and 1 deletions

View File

@ -3,4 +3,5 @@ FROM debian:sid-slim
RUN apt-get -y update && \ RUN apt-get -y update && \
apt-get -y upgrade && \ apt-get -y upgrade && \
apt-get -y install scons pkg-config libx11-dev libxcursor-dev libxinerama-dev libgl1-mesa-dev \ apt-get -y install scons pkg-config libx11-dev libxcursor-dev libxinerama-dev libgl1-mesa-dev \
libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev clang libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev clang \
mingw-w64

27
Jenkinsfile vendored
View File

@ -11,6 +11,9 @@ pipeline {
booleanParam(name: 'BUILD_EDITOR', defaultValue: true, description: 'Build the editor binary') booleanParam(name: 'BUILD_EDITOR', defaultValue: true, description: 'Build the editor binary')
booleanParam(name: 'BUILD_DEBUG_TEMPLATES', defaultValue: true, description: 'Build templates in debug mode.') booleanParam(name: 'BUILD_DEBUG_TEMPLATES', defaultValue: true, description: 'Build templates in debug mode.')
booleanParam(name: 'BUILD_RELEASE_TEMPLATES', defaultValue: true, description: 'Build templates in release mode.') booleanParam(name: 'BUILD_RELEASE_TEMPLATES', defaultValue: true, description: 'Build templates in release mode.')
booleanParam(name: 'BUILD_EDITOR_WINDOWS', defaultValue: true, description: 'Build the editor binary for Windows.')
booleanParam(name: 'BUILD_DEBUG_TEMPLATES_WINDOWS', defaultValue: true, description: 'Build templates in debug mode for Windows.')
booleanParam(name: 'BUILD_RELEASE_TEMPLATES_WINDOWS', defaultValue: true, description: 'Build templates in release mode for Windows.')
string(name: 'REMOTE', defaultValue: 'https://github.com/godotengine/godot.git', description: 'Repository to build from') string(name: 'REMOTE', defaultValue: 'https://github.com/godotengine/godot.git', description: 'Repository to build from')
string(name: 'BRANCH', defaultValue: '*/master') string(name: 'BRANCH', defaultValue: '*/master')
} }
@ -57,6 +60,30 @@ pipeline {
sh 'scons -j8 platform=linuxbsd target=template_debug use_lto=yes' sh 'scons -j8 platform=linuxbsd target=template_debug use_lto=yes'
} }
} }
stage('Build Windows Editor') {
when {
expression { params.BUILD_EDITOR }
}
steps {
sh 'scons -j8 platform=windows arch=x86_64 use_lto=yes'
}
}
stage('Build Windows Debug Templates') {
when {
expression { params.BUILD_DEBUG_TEMPLATES }
}
steps {
sh 'scons -j8 platform=windows target=template_release arch=x86_64 use_lto=yes'
}
}
stage('Build Windows Release Templates') {
when {
expression { params.BUILD_EDITOR }
}
steps {
sh 'scons -j8 platform=windows target=template_debug arch=x86_64 use_lto=yes'
}
}
stage('Archive') { stage('Archive') {
steps { steps {
archiveArtifacts artifacts: 'bin/*', archiveArtifacts artifacts: 'bin/*',