build: add release flags, save artifacts

This commit is contained in:
Greg Heartsfield 2022-09-11 10:21:29 -05:00
parent 62a9548c27
commit 217429f538

View File

@ -1,13 +1,19 @@
image: fedora/latest image: fedora/latest
arch: x86_64
artifacts:
- nostr-rs-relay/target/release/nostr-rs-relay
environment:
RUST_LOG: debug
packages: packages:
- cargo - cargo
- sqlite-devel - sqlite-devel
sources: sources:
- https://git.sr.ht/~gheartsfield/nostr-rs-relay/ - https://git.sr.ht/~gheartsfield/nostr-rs-relay/
shell: false
tasks: tasks:
- build: | - build: |
cd nostr-rs-relay cd nostr-rs-relay
cargo build cargo build --release
- test: | - test: |
cd nostr-rs-relay cd nostr-rs-relay
cargo test cargo test --release