From ed5237ca69cbdacc0de5688ae98ae1fcc70d7676 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Sun, 17 Sep 2023 15:19:44 +0200 Subject: [PATCH] Added Windows target. --- Dockerfile | 3 ++- Jenkinsfile | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index be1042d..13fa0ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,5 @@ FROM debian:sid-slim RUN apt-get -y update && \ apt-get -y upgrade && \ 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 diff --git a/Jenkinsfile b/Jenkinsfile index 6deaeb7..c48d48d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,6 +11,9 @@ pipeline { 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_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: 'BRANCH', defaultValue: '*/master') } @@ -57,6 +60,30 @@ pipeline { 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') { steps { archiveArtifacts artifacts: 'bin/*',