diff --git a/.woodpecker.json b/.woodpecker.json index a40e999f3..49f96f2d8 100644 --- a/.woodpecker.json +++ b/.woodpecker.json @@ -1,11 +1,11 @@ { steps: { gcc-build: { - image: "ubuntu", + image: "alpine", when: { branch: [ "main", - "woodpecker", + "woodpecker-alpine", "dev" ], event: [ @@ -15,50 +15,20 @@ ] }, commands: [ - "echo Install development packages", - "apt update", - "apt install -y build-essential cmake python3", + "echo 'Install development packages'", + "apk update", + "apk install -y build-base cmake python3-dev", - "echo Make build directory", + "echo 'Make build directory'", "mkdir build-gcc", - "echo CMake build make-files", + "echo 'CMake build make-files'", "CC=gcc CXX=g++ cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build-gcc/", - "echo Build Project", + "echo 'Build Project'", "cmake --build build-gcc/", "cmake --install build-gcc/" ] - }, - clang-build: { - image: "ubuntu", - when: { - branch: [ - "main", - "woodpecker", - "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 -DMBEDTLS_FATAL_WARNINGS=OFF -S ./ -B ./build-clang/", - - "echo Build Project", - "cmake --build build-clang/", - "cmake --install build-clang/" - ] } } }