From 44e9c5be14fc95f7998241abb58090259798ab77 Mon Sep 17 00:00:00 2001 From: Sebastian Ranoszek Date: Fri, 4 Apr 2025 16:38:21 +0200 Subject: [PATCH] update --- .woodpecker/build.yaml | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index cbfcaca..240aaf1 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -1,13 +1,30 @@ steps: - # Step 1: Build the project + - name: Lint + image: silkeh/clang:16 + commands: + - echo "Linting C++ code..." + - clang-tidy main.cpp -- -std=c++17 + when: + event: + - push + - pull_request + - name: Build image: alpine commands: - apk add --no-cache g++ libc-dev - - mkdir build + - mkdir -p build - echo "Building project..." - g++ -o build/main main.cpp + - name: Test + image: alpine + commands: + - echo "Running tests..." + - ./build/main + depends_on: + - Build + - name: discord notification image: appleboy/drone-discord settings: @@ -20,8 +37,13 @@ steps: Commiter: {{build.author}} {{#success build.status}} build {{build.number}} succeeded. Good job. - {{datetime build.started}} {{else}} build {{build.number}} failed. Fix me please. - {{datetime build.started}} {{/success}} + + - name: Release + image: plugins/gitea-release + settings: + api_key: GITEA_TOKEN + base_url: https://git.xyro.win + files: /build/main \ No newline at end of file