51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
kind: pipeline
|
|
name: tests
|
|
steps:
|
|
- name: test-linux
|
|
image: rust
|
|
commands:
|
|
- cargo test -v
|
|
---
|
|
kind: pipeline
|
|
name: release
|
|
steps:
|
|
- name: release-linux
|
|
image: rust
|
|
commands:
|
|
- cargo build --release -v
|
|
|
|
- name: release-win
|
|
image: lordmzte/rust-win
|
|
commands:
|
|
- cargo build --release --target x86_64-pc-windows-gnu -v
|
|
|
|
- name: release-debian
|
|
image: rust
|
|
commands:
|
|
# install tool required for building debian packages
|
|
- cargo install cargo-deb
|
|
- cargo deb -v -p cli -o target/debian/jm.deb
|
|
- cargo deb -v -p tokencracker -o target/debian/jmtoken.deb
|
|
|
|
- name: publish
|
|
image: plugins/gitea-release
|
|
settings:
|
|
base_url: https://data.tilera.xyz/git
|
|
api_key:
|
|
from_secret: gitea_token
|
|
note: CHANGELOG.md
|
|
title: tag-${DRONE_TAG}
|
|
files:
|
|
- target/release/jm
|
|
- target/release/jmtoken
|
|
- target/x86_64-pc-windows-gnu/release/jm.exe
|
|
- target/x86_64-pc-windows-gnu/release/jmtoken.exe
|
|
- target/debian/jm.deb
|
|
- target/debian/jmtoken.deb
|
|
when:
|
|
event: tag
|
|
depends_on:
|
|
- release-linux
|
|
- release-win
|
|
- release-debian
|
|
|