Build steps for static release
continuous-integration/drone/push Build was killed Details

This commit is contained in:
projectmoon 2024-03-22 16:53:40 +01:00
parent 58ce7e6ed5
commit d14d1240cb
1 changed files with 21 additions and 0 deletions

View File

@ -8,3 +8,24 @@ steps:
- cargo build
- cargo test --verbose
- cargo deny check licenses
- name: build-release
image: git.agnos.is/projectmoon/gemfreely-build
when:
ref:
- refs/tags/v*
commands:
- RUSTFLAGS="-C target-feature=+crt-static" cargo build --target x86_64-unknown-linux-gnu --release
- name: push-release
image: plugins/gitea-release
environment:
RELEASE_PUSH_KEY:
from_secret: release_push_key
when:
ref:
- refs/tags/v*
settings:
api_key: ${RELEASE_PUSH_KEY}
base_url: https://git.agnos.is/
files: target/x86_64-unknown-linux-gnu/release/gemfreely