This commit is contained in:
parent
ef3c8ff87c
commit
1714a761e4
1 changed files with 34 additions and 5 deletions
|
@ -5,7 +5,33 @@ steps:
|
||||||
- apk add --no-cache g++ libc-dev
|
- apk add --no-cache g++ libc-dev
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
- echo "Building project..."
|
- 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
|
- name: discord notification
|
||||||
image: appleboy/drone-discord
|
image: appleboy/drone-discord
|
||||||
|
@ -20,15 +46,18 @@ steps:
|
||||||
{{/success}}
|
{{/success}}
|
||||||
depends_on:
|
depends_on:
|
||||||
- Build
|
- Build
|
||||||
|
- Test-Arch
|
||||||
|
- Test-Debian
|
||||||
|
|
||||||
- name: Find-Build
|
- name: Confirm-Build
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- ls -al build
|
- ls -al build
|
||||||
|
- echo "Build is mint!"
|
||||||
depends_on:
|
depends_on:
|
||||||
- Build
|
- Build
|
||||||
when:
|
- Test-Arch
|
||||||
event: tag
|
- Test-Debian
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
|
@ -40,6 +69,6 @@ steps:
|
||||||
repo_name: MarioDB
|
repo_name: MarioDB
|
||||||
files: build/main
|
files: build/main
|
||||||
depends_on:
|
depends_on:
|
||||||
- Find-Build
|
- Confirm-Build
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
Loading…
Add table
Reference in a new issue