This commit is contained in:
parent
449a36cbd0
commit
e749a4e190
124
.woodpecker.json
124
.woodpecker.json
@ -1,86 +1,94 @@
|
|||||||
{
|
{
|
||||||
steps: {
|
steps: {
|
||||||
ubuntu-build: {
|
ubuntu-build: {
|
||||||
image: "ubuntu",
|
image: "alpine",
|
||||||
when: {
|
when: {
|
||||||
branch: ["main", "woodpecker"],
|
branch: [
|
||||||
event: ["push", "pull_request", "manual"]
|
"main",
|
||||||
},
|
"woodpecker-alpine",
|
||||||
commands: [
|
"dev"
|
||||||
"echo 'Update apt and Install git'",
|
],
|
||||||
"apt-get update",
|
event: [
|
||||||
"apt-get install -y git",
|
"push",
|
||||||
|
"pull_request",
|
||||||
|
"manual"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
commands: [
|
||||||
|
"echo 'Update apk and Install git'",
|
||||||
|
"apk update",
|
||||||
|
"apk add git",
|
||||||
|
|
||||||
"echo 'Project libpdw CI building libhydride dependancy!!!'",
|
"echo 'Project libpdw CI building libhydride dependancy!!!'",
|
||||||
|
|
||||||
"echo 'Install development packages'",
|
"echo 'Install libhydride development packages'",
|
||||||
"apt-get install -y build-essential cmake libglew-dev libx11-dev libxext-dev libxfixes-dev",
|
"apk add build-base cmake glew-dev libx11-dev libxext-dev libxfixes-dev",
|
||||||
|
|
||||||
"echo 'Clone libhydride'",
|
"echo 'Clone libhydride'",
|
||||||
"git clone https://git.oneechan.xyz/oneechanhax/libhydride /tmp/libhydride-ubuntu",
|
"git clone https://git.oneechan.xyz/oneechanhax/libhydride /tmp/libhydride-alpine",
|
||||||
|
|
||||||
"echo 'Make build directory'",
|
"echo 'Make libhydride build directory'",
|
||||||
"mkdir /tmp/libhydride-ubuntu/build",
|
"mkdir /tmp/libhydride-alpine/build",
|
||||||
|
|
||||||
"echo 'CMake build make-files'",
|
"echo 'CMake build make-files'",
|
||||||
"cmake -DCMAKE_BUILD_TYPE=Release -S /tmp/libhydride-ubuntu/ -B /tmp/libhydride-ubuntu/build/",
|
"cmake -DCMAKE_BUILD_TYPE=Release -S /tmp/libhydride-alpine/ -B /tmp/libhydride-alpine/build/",
|
||||||
|
|
||||||
"echo 'Build Project'",
|
"echo 'Build libhydride Dependancy'",
|
||||||
"cmake --build /tmp/libhydride-ubuntu/build/",
|
"cmake --build /tmp/libhydride-alpine/build/",
|
||||||
"cmake --install /tmp/libhydride-ubuntu/build/",
|
"cmake --install /tmp/libhydride-alpine/build/",
|
||||||
|
|
||||||
|
|
||||||
"echo 'Project libpdw CI building libglez dependancy!!!'",
|
"echo 'Project libpdw CI building libglez dependancy!!!'",
|
||||||
|
|
||||||
"echo 'Clone freetype-gl'",
|
"echo 'Clone freetype-gl'",
|
||||||
"git clone https://github.com/rougier/freetype-gl /tmp/freetype-gl-ubuntu",
|
"git clone https://github.com/rougier/freetype-gl /tmp/freetype-gl-alpine",
|
||||||
|
|
||||||
"echo 'Install freetype-gls build dependancies packages'",
|
"echo 'Install freetype-gls build dependancies packages'",
|
||||||
"apt-get install -y build-essential cmake libgl-dev libx11-dev libglfw3-dev libglew-dev libxext-dev libxfixes-dev libfreetype-dev fontconfig imagemagick doxygen",
|
"apk add build-base cmake mesa-dev libx11-dev glfw-dev glew-dev libxext-dev libxfixes-dev freetype-dev fontconfig imagemagick doxygen",
|
||||||
|
|
||||||
"echo 'Make build directory'",
|
"echo 'Make libglez build directory'",
|
||||||
"mkdir /tmp/freetype-gl-ubuntu/build",
|
"mkdir /tmp/freetype-gl-alpine/build",
|
||||||
|
|
||||||
"echo 'CMake generate make-files'",
|
"echo 'CMake generate make-files'",
|
||||||
"cmake -DCMAKE_BUILD_TYPE=Release -DOpenGL_GL_PREFERENCE=GLVND -Dfreetype-gl_BUILD_SHARED=ON -S /tmp/freetype-gl-ubuntu/ -B /tmp/freetype-gl-ubuntu/build/",
|
"cmake -DCMAKE_BUILD_TYPE=Release -DOpenGL_GL_PREFERENCE=GLVND -Dfreetype-gl_BUILD_SHARED=ON -S /tmp/freetype-gl-alpine/ -B /tmp/freetype-gl-ubuntu/build/",
|
||||||
|
|
||||||
"echo 'Build freetype-gl'",
|
"echo 'Build freetype-gl'",
|
||||||
"cmake --build /tmp/freetype-gl-ubuntu/build/",
|
"cmake --build /tmp/freetype-gl-alpine/build/",
|
||||||
|
|
||||||
"echo 'Install freetype-gl'",
|
"echo 'Install freetype-gl'",
|
||||||
"cmake --install /tmp/freetype-gl-ubuntu/build/",
|
"cmake --install /tmp/freetype-gl-alpine/build/",
|
||||||
|
|
||||||
"echo 'Clone libglez'",
|
"echo 'Clone libglez'",
|
||||||
"git clone https://git.oneechan.xyz/oneechanhax/libglez /tmp/libglez-ubuntu",
|
"git clone https://git.oneechan.xyz/oneechanhax/libglez /tmp/libglez-alpine",
|
||||||
|
|
||||||
"echo 'Install build dependancies packages'",
|
"echo 'Install libglez build dependancies packages'",
|
||||||
"apt-get install -y build-essential cmake libglm-dev libglew-dev libx11-dev libxext-dev libxfixes-dev libsdl2-dev",
|
"apk add build-base cmake glm-dev sdl2-dev",
|
||||||
|
|
||||||
"echo 'Make build directory'",
|
"echo 'Make build directory'",
|
||||||
"mkdir /tmp/libglez-ubuntu/build",
|
"mkdir /tmp/libglez-alpine/build",
|
||||||
|
|
||||||
"echo 'CMake build make-files'",
|
"echo 'CMake build make-files'",
|
||||||
"cmake -DCMAKE_BUILD_TYPE=Release -S /tmp/libglez-ubuntu/ -B /tmp/libglez-ubuntu/build/",
|
"cmake -DCMAKE_BUILD_TYPE=Release -S /tmp/libglez-alpine/ -B /tmp/libglez-alpine/build/",
|
||||||
|
|
||||||
"echo 'Build Project'",
|
"echo 'Build libglez Dependancy'",
|
||||||
"cmake --build /tmp/libglez-ubuntu/build/",
|
"cmake --build /tmp/libglez-alpine/build/",
|
||||||
"cmake --install /tmp/libglez-ubuntu/build/",
|
"cmake --install /tmp/libglez-alpine/build/",
|
||||||
|
|
||||||
"echo 'Dependancy builds finished.'",
|
"echo 'Dependancy builds finished.'",
|
||||||
|
|
||||||
|
|
||||||
"echo 'Project libpdw CI now building the actual project!!!'",
|
"echo 'Project libpdw CI now building the actual project!!!'",
|
||||||
|
|
||||||
"echo 'Make build directory'",
|
"echo 'Make libpdw build directory'",
|
||||||
"mkdir build-ubuntu",
|
"mkdir build-alpine",
|
||||||
|
|
||||||
"echo 'CMake build make-files'",
|
"echo 'CMake build make-files'",
|
||||||
"cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build-ubuntu/",
|
"cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build-alpine/",
|
||||||
|
|
||||||
"echo 'Build Project'",
|
"echo 'Build libpdw Project'",
|
||||||
"cmake --build build-ubuntu/",
|
"cmake --build build-alpine/",
|
||||||
"cmake --install build-ubuntu/"
|
"cmake --install build-alpine/"
|
||||||
]
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user