57 lines
1.2 KiB
JSON
57 lines
1.2 KiB
JSON
{
|
|
"steps": {
|
|
"gcc-build": {
|
|
"image": "ubuntu",
|
|
"when": {
|
|
"branch": [
|
|
"main",
|
|
"dev"
|
|
],
|
|
"event": [
|
|
"push",
|
|
"pull_request",
|
|
"manual"
|
|
]
|
|
},
|
|
"commands": [
|
|
"echo Install development packages",
|
|
"apt update",
|
|
"apt install -y build-essential cmake python3",
|
|
"echo Make build directory",
|
|
"mkdir build-gcc",
|
|
"echo CMake build make-files",
|
|
"CC=gcc CXX=g++ cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build-gcc/",
|
|
"echo Build Project",
|
|
"cmake --build build-gcc/",
|
|
"cmake --install build-gcc/"
|
|
]
|
|
},
|
|
"clang-build": {
|
|
"image": "ubuntu",
|
|
"when": {
|
|
"branch": [
|
|
"main",
|
|
"dev"
|
|
],
|
|
"event": [
|
|
"push",
|
|
"pull_request",
|
|
"manual"
|
|
]
|
|
},
|
|
"commands": [
|
|
"echo Install development packages",
|
|
"apt update",
|
|
"apt install -y build-essential cmake clang python3",
|
|
"echo Make build directory",
|
|
"mkdir build-clang",
|
|
"echo CMake build make-files",
|
|
"CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build-clang/",
|
|
"echo Build Project",
|
|
"cmake --build build-clang/",
|
|
"cmake --install build-clang/"
|
|
]
|
|
}
|
|
}
|
|
}
|