All checks were successful
pyrite-dev/taiga/pipeline/head This commit looks good
60 lines
1.3 KiB
Groovy
60 lines
1.3 KiB
Groovy
pipeline {
|
|
agent {
|
|
label "built-in"
|
|
}
|
|
options {
|
|
buildDiscarder(logRotator(numToKeepStr: '16', artifactNumToKeepStr: '16'))
|
|
}
|
|
stages {
|
|
stage("Build") {
|
|
parallel {
|
|
stage("Build for Linux 64-bit") {
|
|
agent {
|
|
label "built-in"
|
|
}
|
|
steps {
|
|
sh("git submodule update --init --recursive --force")
|
|
sh("make clean")
|
|
sh("make -j4 CC=musl-gcc LDFLAGS=-static")
|
|
sh("mv taiga taiga-linux64")
|
|
archiveArtifacts("taiga-linux64")
|
|
}
|
|
}
|
|
stage("Build for Linux 64-bit (Debug)") {
|
|
agent {
|
|
label "built-in"
|
|
}
|
|
steps {
|
|
sh("git submodule update --init --recursive --force")
|
|
sh("make clean")
|
|
sh("make -j4 CC='musl-gcc -g' LDFLAGS=-static")
|
|
sh("mv taiga taiga-debug-linux64")
|
|
archiveArtifacts("taiga-debug-linux64")
|
|
}
|
|
}
|
|
stage("Build for Windows 32-bit") {
|
|
agent {
|
|
label "built-in"
|
|
}
|
|
environment {
|
|
WATCOM = "/usr/watcom"
|
|
INCLUDE = "/usr/watcom/h:/usr/watcom/h/nt"
|
|
PATH = "/usr/watcom/binl64:${env.PATH}"
|
|
}
|
|
steps {
|
|
sh("git submodule update --init --recursive --force")
|
|
sh("make clean")
|
|
sh("make -j4 TARGET=watcom")
|
|
sh("mv taiga.exe taiga-win32.exe")
|
|
archiveArtifacts("taiga-win32.exe")
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
notifyDiscord()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|