jensmemesclient/.drone.yml
LordMZTE 9af8243cb5
Some checks failed
continuous-integration/drone/push Build is failing
try to fix ci attempt 1
2021-04-01 21:47:04 +02:00

58 lines
1.6 KiB
YAML

kind: pipeline
name: tests
steps:
- name: test-linux
image: rust
commands:
- apk add gtk+3.0-dev
- cargo test -v
---
kind: pipeline
name: release
steps:
- name: release-linux
image: rust
commands:
- apk add gtk+3.0-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:
- apk add gtk+3.0-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