update
This commit is contained in:
parent
d5b9690e33
commit
44e9c5be14
1 changed files with 26 additions and 4 deletions
|
@ -1,13 +1,30 @@
|
||||||
steps:
|
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
|
- name: Build
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache g++ libc-dev
|
- apk add --no-cache g++ libc-dev
|
||||||
- mkdir build
|
- mkdir -p build
|
||||||
- echo "Building project..."
|
- echo "Building project..."
|
||||||
- g++ -o build/main main.cpp
|
- g++ -o build/main main.cpp
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- echo "Running tests..."
|
||||||
|
- ./build/main
|
||||||
|
depends_on:
|
||||||
|
- Build
|
||||||
|
|
||||||
- name: discord notification
|
- name: discord notification
|
||||||
image: appleboy/drone-discord
|
image: appleboy/drone-discord
|
||||||
settings:
|
settings:
|
||||||
|
@ -20,8 +37,13 @@ steps:
|
||||||
Commiter: {{build.author}}
|
Commiter: {{build.author}}
|
||||||
{{#success build.status}}
|
{{#success build.status}}
|
||||||
build {{build.number}} succeeded. Good job.
|
build {{build.number}} succeeded. Good job.
|
||||||
{{datetime build.started}}
|
|
||||||
{{else}}
|
{{else}}
|
||||||
build {{build.number}} failed. Fix me please.
|
build {{build.number}} failed. Fix me please.
|
||||||
{{datetime build.started}}
|
|
||||||
{{/success}}
|
{{/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