milsko/Jenkinsfile
NishiOwO 8d597328f9
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
fix
2026-04-06 17:37:19 +09:00

70 lines
1.4 KiB
Groovy

pipeline {
agent {
label "built-in"
}
stages {
stage("Build document") {
when {
branch "master"
}
steps {
sh("doxygen")
sh("rm -rf /var/www/milsko-doxygen")
sh("mv doxygen/html /var/www/milsko-doxygen")
}
post {
always {
notifyDiscord()
}
}
}
stage("Build") {
parallel {
stage("Build for Linux 64-bit") {
agent {
label "built-in"
}
steps {
sh("./configure --enable-opengl --enable-vulkan --without-vulkan-string-helper")
sh("make clean")
sh("make -j4")
}
}
stage("Build for Windows 32-bit") {
agent {
label "built-in"
}
steps {
sh("./configure --enable-opengl --enable-stb-truetype --disable-freetype2 --cross --target=Windows --host=i686-w64-mingw32")
sh("make clean")
sh("make -j4")
}
}
stage("Build for Windows 64-bit") {
agent {
label "built-in"
}
steps {
sh("./configure --enable-opengl --enable-stb-truetype --disable-freetype2 --cross --target=Windows --host=x86_64-w64-mingw32")
sh("make clean")
sh("make -j4")
}
}
stage("Build for Windows 32-bit (MSVC)") {
agent {
label "2012r2"
}
steps {
bat("nmake -f NTMakefile clean")
bat("nmake -f NTMakefile")
}
}
}
post {
always {
notifyDiscord()
}
}
}
}
}