update
This commit is contained in:
parent
d5b9690e33
commit
44e9c5be14
1 changed files with 26 additions and 4 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue