1
0
mirror of https://github.com/shimunn/aria2xspf.git synced 2023-11-17 09:27:54 +01:00

drone
Some checks are pending
continuous-integration/drone/push Build is passing

This commit is contained in:
shimunn 2019-06-02 01:17:29 +02:00
parent 51c1371f46
commit 35b01ba152

42
.drone.yml Normal file
View File

@ -0,0 +1,42 @@
kind: pipeline
name: default
steps:
- name: test
image: rust:1.34.0
environment:
CARGO_HOME: /drone/.cargo
commands:
- cargo test
- rustup component add rustfmt
- cargo fmt -- --check
- name: build_relase
image: rust:1.34.0
environment:
CARGO_HOME: /drone/.cargo
commands:
- mkdir bin
- export CARGO_INSTALL_ROOT=$PWD
- rustup target add x86_64-unknown-linux-musl
- cargo install --path . --target x86_64-unknown-linux-musl
- mkdir dist
- tar cvzf binary.tar.gz bin/*
when:
event:
- tag
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_tkn
base_url:
from_secret: gitea_url
files:
- binary.tar.gz
checksum:
- md5
- sha512
when:
event:
- tag