2020-12-29 01:48:28 +01:00
|
|
|
kind: pipeline
|
|
|
|
name: tests
|
|
|
|
steps:
|
2021-04-06 20:55:37 +02:00
|
|
|
- name: test-linux-debug
|
2020-12-29 01:48:28 +01:00
|
|
|
image: rust
|
2021-04-06 21:27:37 +02:00
|
|
|
depends_on: [ clone ]
|
2020-12-29 01:48:28 +01:00
|
|
|
commands:
|
2021-04-01 21:55:49 +02:00
|
|
|
- apt update
|
|
|
|
- apt install -y libgtk-3-dev
|
2020-12-29 01:48:28 +01:00
|
|
|
- cargo test -v
|
2021-04-06 20:55:37 +02:00
|
|
|
|
|
|
|
- name: test-linux-release
|
|
|
|
image: rust
|
2021-04-06 21:27:37 +02:00
|
|
|
depends_on: [ clone ]
|
2021-04-06 20:55:37 +02:00
|
|
|
commands:
|
|
|
|
- apt update
|
|
|
|
- apt install -y libgtk-3-dev
|
|
|
|
- cargo test -v --release
|
2021-04-14 21:13:15 +02:00
|
|
|
|
|
|
|
- name: test-windows-debug
|
|
|
|
image: lordmzte/rust-win
|
|
|
|
depends_on: [ clone ]
|
|
|
|
commands:
|
|
|
|
- apt update
|
|
|
|
- apt install -y wine
|
|
|
|
- cargo test -v --target x86_64-pc-windows-gnu
|
|
|
|
|
|
|
|
- name: test-windows-release
|
|
|
|
image: lordmzte/rust-win
|
|
|
|
depends_on: [ clone ]
|
|
|
|
commands:
|
|
|
|
- apt update
|
|
|
|
- apt install -y wine
|
|
|
|
- cargo test -v --release --target x86_64-pc-windows-gnu
|
2020-12-29 01:48:28 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: release
|
|
|
|
steps:
|
|
|
|
- name: release-linux
|
|
|
|
image: rust
|
|
|
|
commands:
|
2021-04-01 21:55:49 +02:00
|
|
|
- apt update
|
|
|
|
- apt install -y libgtk-3-dev
|
2020-12-29 14:57:02 +01:00
|
|
|
- cargo build --release -v
|
2020-12-29 01:48:28 +01:00
|
|
|
|
|
|
|
- name: release-win
|
|
|
|
image: lordmzte/rust-win
|
|
|
|
commands:
|
2020-12-29 14:57:02 +01:00
|
|
|
- cargo build --release --target x86_64-pc-windows-gnu -v
|
2020-12-29 01:48:28 +01:00
|
|
|
|
2021-01-05 20:50:19 +01:00
|
|
|
- name: release-debian
|
|
|
|
image: rust
|
|
|
|
commands:
|
2021-04-01 21:55:49 +02:00
|
|
|
- apt update
|
|
|
|
- apt install -y libgtk-3-dev
|
2021-01-05 20:50:19 +01:00
|
|
|
# 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
|
2021-04-01 21:41:34 +02:00
|
|
|
- cargo deb -v -p gui -o target/debian/jmg.deb
|
2021-01-05 20:50:19 +01:00
|
|
|
|
2020-12-29 01:48:28 +01:00
|
|
|
- name: publish
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
base_url: https://data.tilera.xyz/git
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
2020-12-29 13:40:08 +01:00
|
|
|
note: CHANGELOG.md
|
2020-12-29 14:57:02 +01:00
|
|
|
title: tag-${DRONE_TAG}
|
2020-12-29 01:48:28 +01:00
|
|
|
files:
|
|
|
|
- target/release/jm
|
|
|
|
- target/release/jmtoken
|
2021-04-01 21:41:34 +02:00
|
|
|
- target/release/jmg
|
2020-12-29 01:48:28 +01:00
|
|
|
- target/x86_64-pc-windows-gnu/release/jm.exe
|
|
|
|
- target/x86_64-pc-windows-gnu/release/jmtoken.exe
|
2021-04-01 21:41:34 +02:00
|
|
|
- target/x86_64-pc-windows-gnu/release/jmg.exe
|
2021-01-05 20:50:19 +01:00
|
|
|
- target/debian/jm.deb
|
|
|
|
- target/debian/jmtoken.deb
|
2021-04-01 21:41:34 +02:00
|
|
|
- target/debian/jmg.deb
|
2020-12-29 01:48:28 +01:00
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
depends_on:
|
|
|
|
- release-linux
|
|
|
|
- release-win
|
2021-01-05 20:50:19 +01:00
|
|
|
- release-debian
|
2020-12-29 01:48:28 +01:00
|
|
|
|