Merge pull request 'master' (#89) from master into release
Some checks failed
SHS Gitea/shstk/pipeline/head There was a failure building this commit
Some checks failed
SHS Gitea/shstk/pipeline/head There was a failure building this commit
Reviewed-on: https://git.shs.tools/SHS/shstk/pulls/89
This commit was merged in pull request #89.
This commit is contained in:
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@@ -1,4 +1,4 @@
|
||||
def build_docker(name) {
|
||||
def build_docker(name, release_dir) {
|
||||
def image = "${name}-shstk"
|
||||
echo "Build image ${image}"
|
||||
def pref = ""
|
||||
@@ -12,6 +12,9 @@ def build_docker(name) {
|
||||
def args = "${pref} --build-arg LIBS_BUILD_NUMBER=${env.BUILD_NUMBER} --build-arg JOBS_COUNT=${jobs}"
|
||||
dir ("docker/${image}") {
|
||||
sh "docker build ${args} --no-cache -t ${image} ."
|
||||
docker.image('${image}').inside('-v ${release_dir}:/soft/release') {
|
||||
sh 'cp -vf /soft/shstk/release/* /soft/release/'
|
||||
}
|
||||
}
|
||||
return "\n - ${image}"
|
||||
}
|
||||
@@ -19,6 +22,8 @@ node {
|
||||
stage("checkout") {
|
||||
checkout scm
|
||||
}
|
||||
def rel_dir = sh(script: "pwd", returnStdout: true) + '/release'
|
||||
echo "Release to ${rel_dir}"
|
||||
def _envmap = [:]
|
||||
def _env = sh(script: "env", returnStdout: true).trim().split("\n")
|
||||
_env.each{ l ->
|
||||
@@ -27,16 +32,18 @@ node {
|
||||
def _v = l.substring(_ind + 1);
|
||||
_envmap["${_n}"] = "${_v}";
|
||||
}
|
||||
sh "mkdir -p ${rel_dir}"
|
||||
def _msg = "Built images:"
|
||||
def platforms = ['debian', 'osx', 'windows', 'windows32', 'android', 'pi', 'ubuntu']
|
||||
for (int i = 0; i < platforms.size(); ++i) {
|
||||
if (_envmap["BUILD_${platforms[i]}"] == "1") {
|
||||
stage("${platforms[i]}-shstk") {
|
||||
_msg += build_docker("${platforms[i]}")
|
||||
_msg += build_docker("${platforms[i]}", rel_dir)
|
||||
}
|
||||
}
|
||||
}
|
||||
sh "docker system prune -f"
|
||||
archiveArtifacts '${rel_dir}/*'
|
||||
echo "${_msg}"
|
||||
}
|
||||
pipeline {
|
||||
|
||||
@@ -11,6 +11,7 @@ RUN git clone -b master --single-branch --depth 1 --recursive https://git.shs.to
|
||||
WORKDIR /soft/shstk_build_debian
|
||||
RUN cmake -DICU=0 -DLOCAL=0 -DQGLENGINE=1 -DQGLVIEW=1 -DHAS_GL=0 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
&& make install -j${JOBS_COUNT} \
|
||||
&& make deploy -j${JOBS_COUNT} \
|
||||
&& rm -rf * \
|
||||
&& ldconfig
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@ RUN cmake -DICU=0 -DCROSSTOOLS=1 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
|
||||
WORKDIR /soft/shstk_build_osx
|
||||
RUN cmake -DCMAKE_INSTALL_PREFIX=/soft/osx -DICU=0 -DLOCAL=1 -DQGLENGINE=1 -DQGLVIEW=1 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} -DCMAKE_TOOLCHAIN_FILE=/soft/toolchain-Darwin.cmake ../shstk/ \
|
||||
&& make install -j${JOBS_COUNT} && rm -rf *
|
||||
&& make install -j${JOBS_COUNT} \
|
||||
&& make deploy -j${JOBS_COUNT} \
|
||||
&& rm -rf *
|
||||
|
||||
WORKDIR /soft/src
|
||||
|
||||
@@ -16,6 +16,8 @@ RUN cmake -DICU=0 -DCROSSTOOLS=1 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
|
||||
WORKDIR /soft/shstk_build_pi
|
||||
RUN cmake -DCMAKE_INSTALL_PREFIX=/soft/pi/usr -DICU=0 -DLOCAL=1 -DQGLENGINE=0 -DQGLVIEW=0 -DHAS_GL=0 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} -DCMAKE_TOOLCHAIN_FILE=/soft/toolchain-RPi.cmake ../shstk/ \
|
||||
&& make install -j${JOBS_COUNT} && rm -rf *
|
||||
&& make install -j${JOBS_COUNT} \
|
||||
&& make deploy -j${JOBS_COUNT} \
|
||||
&& rm -rf *
|
||||
|
||||
WORKDIR /soft/src
|
||||
|
||||
@@ -11,6 +11,7 @@ RUN git clone -b master --single-branch --depth 1 --recursive https://git.shs.to
|
||||
WORKDIR /soft/shstk_build_ubuntu
|
||||
RUN cmake -DICU=0 -DLOCAL=0 -DQGLENGINE=1 -DQGLVIEW=1 -DHAS_GL=0 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
&& make install -j${JOBS_COUNT} \
|
||||
&& make deploy -j${JOBS_COUNT} \
|
||||
&& rm -rf * \
|
||||
&& ldconfig
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@ RUN cmake -DICU=0 -DCROSSTOOLS=1 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
|
||||
WORKDIR /soft/shstk_build_windows
|
||||
RUN cmake -DCMAKE_INSTALL_PREFIX=/soft/windows -DICU=0 -DLOCAL=1 -DQGLENGINE=1 -DQGLVIEW=1 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} -DCMAKE_TOOLCHAIN_FILE=/soft/toolchain-Windows.cmake ../shstk/ \
|
||||
&& make install -j${JOBS_COUNT} && rm -rf *
|
||||
&& make install -j${JOBS_COUNT} \
|
||||
&& make deploy -j${JOBS_COUNT} \
|
||||
&& rm -rf *
|
||||
|
||||
WORKDIR /soft/src
|
||||
|
||||
@@ -16,6 +16,8 @@ RUN cmake -DICU=0 -DCROSSTOOLS=1 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
|
||||
WORKDIR /soft/shstk_build_windows32
|
||||
RUN cmake -DCMAKE_INSTALL_PREFIX=/soft/windows32 -DICU=0 -DLOCAL=1 -DQGLENGINE=1 -DQGLVIEW=1 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} -DCMAKE_TOOLCHAIN_FILE=/soft/toolchain-Windows32.cmake ../shstk/ \
|
||||
&& make install -j${JOBS_COUNT} && rm -rf *
|
||||
&& make install -j${JOBS_COUNT} \
|
||||
&& make deploy -j${JOBS_COUNT} \
|
||||
&& rm -rf *
|
||||
|
||||
WORKDIR /soft/src
|
||||
|
||||
2
pip
2
pip
Submodule pip updated: 040eb3b279...ca44846240
Reference in New Issue
Block a user