-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
50 lines (46 loc) · 1.2 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
kind: pipeline
name: tests
steps:
- name: test-linux
image: rust
commands:
- cargo test -v
# Try to build docker image
- name: test-docker-build
image: plugins/docker
settings:
repo: lordmzte/utils
# Don't push
dry_run: true
---
kind: pipeline
name: release
steps:
- name: release-linux
image: rust
commands:
- cargo build --release -v
# Cross-Compile to windows
- name: release-win
image: lordmzte/rust-win
commands:
- cargo build --release --target x86_64-pc-windows-gnu -v
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
note: CHANGELOG.md
title: tag-${DRONE_TAG}
files:
- target/release/mcstat
- target/release/figclock
- target/release/tmod
- target/x86_64-pc-windows-gnu/release/mcstat.exe
- target/x86_64-pc-windows-gnu/release/figclock.exe
- target/x86_64-pc-windows-gnu/release/tmod.exe
when:
event: tag
depends_on:
- release-linux
- release-win