Add .woodpecker.json
Some checks failed
ci/woodpecker/manual/woodpecker.json Pipeline failed

This commit is contained in:
Rebekah 2024-06-20 08:01:25 -04:00
parent 631f3b931d
commit 27054e17ca

176
.woodpecker.json Normal file
View File

@ -0,0 +1,176 @@
{
"steps": {
"alpine-build": {
"image": "alpine",
"when": {
"branch": ["main", "woodpecker"],
"event": ["push", "pull_request", "manual"]
},
"commands": [
"echo Update apk and Install git",
"apk update",
"apk add git",
"echo Project libpdw CI building libhydride dependancy!!!",
"echo Install development packages",
"apk add build-base cmake glew-dev libx11-dev libxext-dev libxfixes-dev",
"echo Clone libhydride",
"git clone https://git.oneechan.xyz/oneechanhax/libhydride /tmp/libhydride-alpine",
"echo Make build directory",
"mkdir /tmp/libhydride-alpine/build",
"echo CMake build make-files",
"cmake -DCMAKE_BUILD_TYPE=Release -S /tmp/libhydride-alpine/ -B /tmp/libhydride-alpine/build/",
"echo Build Project",
"cmake --build /tmp/libhydride-alpine/build/",
"cmake --install /tmp/libhydride-alpine/build/",
"echo Project libpdw CI building libglez dependancy!!!",
"echo Clone freetype-gl",
"git clone https://github.com/rougier/freetype-gl /tmp/freetype-gl-alpine",
"echo Install freetype-gls build dependancies packages",
"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",
"mkdir /tmp/freetype-gl-alpine/build",
"echo CMake generate make-files",
"cmake -DCMAKE_BUILD_TYPE=Release -DOpenGL_GL_PREFERENCE=GLVND -Dfreetype-gl_BUILD_SHARED=ON -S /tmp/freetype-gl-alpine/ -B /tmp/freetype-gl-alpine/build/",
"echo Build freetype-gl",
"cmake --build /tmp/freetype-gl-alpine/build/",
"echo Install freetype-gl",
"cmake --install /tmp/freetype-gl-alpine/build/",
"echo Clone libglez",
"git clone https://git.oneechan.xyz/oneechanhax/libglez /tmp/libglez-alpine",
"echo Install build dependancies packages",
"apk add build-base cmake glm-dev sdl2-dev",
"echo Make build directory",
"mkdir /tmp/libglez-alpine/build",
"echo CMake build make-files",
"cmake -DCMAKE_BUILD_TYPE=Release -S /tmp/libglez-alpine/ -B /tmp/libglez-alpine/build/",
"echo Build Project",
"cmake --build /tmp/libglez-alpine/build/",
"cmake --install /tmp/libglez-alpine/build/",
"echo Dependancies finished",
"echo Project libpdw CI now building the actual project!!!",
"echo Make build directory",
"mkdir build-alpine",
"echo CMake build make-files",
"cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build-alpine/",
"echo Build Project",
"cmake --build build-alpine/",
"cmake --install build-alpine/"
]
},
"ubuntu-build": {
"image": "ubuntu",
"when": {
"branch": ["main", "woodpecker"],
"event": ["push", "pull_request", "manual"]
},
"commands": [
"echo Update apt and Install git",
"apt update",
"apt install -y git",
"echo Project libpdw CI building libhydride dependancy!!!",
"echo Install development packages",
"apt install -y build-essential cmake libglew-dev libx11-dev libxext-dev libxfixes-dev",
"echo Clone libhydride",
"git clone https://git.oneechan.xyz/oneechanhax/libhydride /tmp/libhydride-ubuntu",
"echo Make build directory",
"mkdir /tmp/libhydride-ubuntu/build",
"echo CMake build make-files",
"cmake -DCMAKE_BUILD_TYPE=Release -S /tmp/libhydride-ubuntu/ -B /tmp/libhydride-ubuntu/build/",
"echo Build Project",
"cmake --build /tmp/libhydride-ubuntu/build/",
"cmake --install /tmp/libhydride-ubuntu/build/",
"echo Project libpdw CI building libglez dependancy!!!",
"echo Clone freetype-gl",
"git clone https://github.com/rougier/freetype-gl /tmp/freetype-gl-ubuntu",
"echo Install freetype-gls build dependancies packages",
"apt install -y build-essential cmake libgl-dev libx11-dev libglfw3-dev libglew-dev libxext-dev libxfixes-dev libfreetype-dev fontconfig imagemagick doxygen",
"echo Make build directory",
"mkdir /tmp/freetype-gl-ubuntu/build",
"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/",
"echo Build freetype-gl",
"cmake --build /tmp/freetype-gl-ubuntu/build/",
"echo Install freetype-gl",
"cmake --install /tmp/freetype-gl-ubuntu/build/",
"echo Clone libglez",
"git clone https://git.oneechan.xyz/oneechanhax/libglez /tmp/libglez-ubuntu",
"echo Install build dependancies packages",
"apt install -y build-essential cmake libglm-dev libglew-dev libx11-dev libxext-dev libxfixes-dev libsdl2-dev",
"echo Make build directory",
"mkdir /tmp/libglez-ubuntu/build",
"echo CMake build make-files",
"cmake -DCMAKE_BUILD_TYPE=Release -S /tmp/libglez-ubuntu/ -B /tmp/libglez-ubuntu/build/",
"echo Build Project",
"cmake --build /tmp/libglez-ubuntu/build/",
"cmake --install /tmp/libglez-ubuntu/build/",
"echo Dependancy builds finished.",
"echo Project libpdw CI now building the actual project!!!",
"echo Make build directory",
"mkdir build-alpine",
"echo CMake build make-files",
"cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build-alpine/",
"echo Build Project",
"cmake --build build-alpine/",
"cmake --install build-alpine/"
]
}
}
}