From 1714a761e4891d49cd5e83a256d647a2268e03e6 Mon Sep 17 00:00:00 2001 From: Sebastian Ranoszek Date: Fri, 4 Apr 2025 17:53:04 +0200 Subject: [PATCH] The Tester one --- .woodpecker/{build.yaml => woodpecker.yaml} | 39 ++++++++++++++++++--- 1 file changed, 34 insertions(+), 5 deletions(-) rename .woodpecker/{build.yaml => woodpecker.yaml} (55%) diff --git a/.woodpecker/build.yaml b/.woodpecker/woodpecker.yaml similarity index 55% rename from .woodpecker/build.yaml rename to .woodpecker/woodpecker.yaml index 3d650ce..230454e 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/woodpecker.yaml @@ -5,7 +5,33 @@ steps: - apk add --no-cache g++ libc-dev - mkdir -p build - echo "Building project..." - - g++ -static -o build/main main.cpp + - g++ -O2 -static -o build/main main.cpp + - chmod +x build/main + + - name: Check Static + image: alpine + commands: + - apk add --no-cache file + - file build/main + - ldd build/main || echo "Static binary - no dynamic dependencies" + depends_on: + - Build + + - name: Test-Debian + image: debian:bullseye + commands: + - apt-get update && apt-get install -y ca-certificates + - ./build/main + depends_on: + - Build + + - name: Test-Arch + image: archlinux:latest + commands: + - pacman -Sy --noconfirm + - ./build/main + depends_on: + - Build - name: discord notification image: appleboy/drone-discord @@ -20,15 +46,18 @@ steps: {{/success}} depends_on: - Build + - Test-Arch + - Test-Debian - - name: Find-Build + - name: Confirm-Build image: alpine commands: - ls -al build + - echo "Build is mint!" depends_on: - Build - when: - event: tag + - Test-Arch + - Test-Debian - name: Release image: plugins/gitea-release @@ -40,6 +69,6 @@ steps: repo_name: MarioDB files: build/main depends_on: - - Find-Build + - Confirm-Build when: event: tag