LordMZTE
1463a3cf0d
All checks were successful
continuous-integration/drone/push Build is passing
I guess this isn't a good idea...
This reverts commit 831e971914
.
70 lines
1.9 KiB
YAML
70 lines
1.9 KiB
YAML
kind: pipeline
|
|
name: tests
|
|
steps:
|
|
- name: test-linux-debug
|
|
image: rust
|
|
depends_on: [ clone ]
|
|
commands:
|
|
- apt update
|
|
- apt install -y libgtk-3-dev
|
|
- cargo test -v
|
|
|
|
- name: test-linux-release
|
|
image: rust
|
|
depends_on: [ clone ]
|
|
commands:
|
|
- apt update
|
|
- apt install -y libgtk-3-dev
|
|
- cargo test -v --release
|
|
---
|
|
kind: pipeline
|
|
name: release
|
|
steps:
|
|
- name: release-linux
|
|
image: rust
|
|
commands:
|
|
- apt update
|
|
- apt install -y libgtk-3-dev
|
|
- 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:
|
|
- apt update
|
|
- apt install -y libgtk-3-dev
|
|
# 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
|
|
- cargo deb -v -p gui -o target/debian/jmg.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/release/jmg
|
|
- target/x86_64-pc-windows-gnu/release/jm.exe
|
|
- target/x86_64-pc-windows-gnu/release/jmtoken.exe
|
|
- target/x86_64-pc-windows-gnu/release/jmg.exe
|
|
- target/debian/jm.deb
|
|
- target/debian/jmtoken.deb
|
|
- target/debian/jmg.deb
|
|
when:
|
|
event: tag
|
|
depends_on:
|
|
- release-linux
|
|
- release-win
|
|
- release-debian
|
|
|