Added a WoodpeckerCI Script to test building the project.
Some checks failed
ci/woodpecker/push/woodpecker.json Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker.json Pipeline failed
This commit is contained in:
parent
8aecc2313e
commit
edad95f876
57
.woodpecker.json
Normal file
57
.woodpecker.json
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
steps: {
|
||||
alpine-build: {
|
||||
image: "alpine",
|
||||
when: {
|
||||
branch: [
|
||||
"main",
|
||||
"dev"
|
||||
],
|
||||
event: ["push", "pull_request", "manual"]
|
||||
},
|
||||
commands: [
|
||||
"echo 'Update Package Manager to Latest.'",
|
||||
"apk update",
|
||||
|
||||
"echo 'Install git to clone dependencies.'",
|
||||
"apk add git",
|
||||
|
||||
|
||||
"echo 'Project VulkZample CI building libSDL2pp dependancy!!!'",
|
||||
|
||||
"echo 'Clone libSDL2pp'",
|
||||
"git clone https://github.com/libSDL2pp/libSDL2pp/ /tmp/libSDL2pp-alpine",
|
||||
|
||||
|
||||
"echo 'Install libSDL2pps build dependancies packages'",
|
||||
"apk add build-base cmake sdl2-dev git",
|
||||
|
||||
"echo 'CMake generate make-files'",
|
||||
"cmake -DCMAKE_BUILD_TYPE=Release -DSDL2PP_WITH_IMAGE=OFF -DSDL2PP_WITH_TTF=OFF -DSDL2PP_WITH_MIXER=OFF -DSDL2PP_WITH_EXAMPLES=OFF -DSDL2PP_ENABLE_LIVE_TESTS=OFF -DSDL2PP_WITH_TESTS=OFF -S /tmp/libSDL2pp-alpine/ -B /tmp/libSDL2pp-alpine/build/",
|
||||
|
||||
"echo 'Build libSDL2pp'",
|
||||
"cmake --build /tmp/libSDL2pp-alpine/build/",
|
||||
|
||||
"echo 'Install libSDL2pp'",
|
||||
"cmake --install /tmp/libSDL2pp-alpine/build/",
|
||||
|
||||
"echo 'Dependancy builds finished.'",
|
||||
|
||||
|
||||
|
||||
"echo 'Project VulkZample CI now building the actual project!!!'",
|
||||
|
||||
"echo Install development packages",
|
||||
"apk add build-base cmake imagemagick glm-dev sdl2-dev mesa-dev mesa-vulkan-swrast mesa-vulkan-broadcom mesa-vulkan-layers shaderc vulkan-loader-dev vulkan-validation-layers vulkan-validation-layers-dev",
|
||||
|
||||
"echo CMake build make-files",
|
||||
"cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build-alpine/",
|
||||
|
||||
"echo Build Project",
|
||||
"cmake --build build-alpine/",
|
||||
"time ENABLE_SWRAST=1 sh run.sh",
|
||||
"time sh run.sh"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user