forked from imlonghao/archlinuxcn-packages
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
46 lines (46 loc) · 989 Bytes
/
.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
---
kind: pipeline
type: docker
name: build
steps:
- name: test
image: rust:1.67.1
commands:
- cargo test
when:
branch:
- master
---
kind: pipeline
type: docker
name: release
steps:
- name: build
image: rust:1.67.1
commands:
- apt update
- apt install -y --no-install-recommends musl-tools pkg-config libssl-dev
- rustup target add x86_64-unknown-linux-musl
- cargo build --release --locked --all-features --target x86_64-unknown-linux-musl
when:
event: tag
- name: compress
image: ubuntu
commands:
- apt update && apt install -y --no-install-recommends upx
- upx --lzma target/x86_64-unknown-linux-musl/release/archlinuxcn-packages
when:
event: tag
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: GITEA_BOT_TOKEN
base_url: https://git.esd.cc
files:
- target/x86_64-unknown-linux-musl/release/archlinuxcn-packages
checksum:
- md5
- sha256
when:
event: tag