neutauri/.drone.yml

30 lines
906 B
YAML
Raw Normal View History

2022-05-02 08:23:39 +00:00
kind: pipeline
type: docker
name: default
steps:
- name: build
2022-05-02 11:10:57 +00:00
image: ubuntu:latest
2022-05-02 08:23:39 +00:00
commands:
2022-05-02 11:10:57 +00:00
- echo '========Install the necessary environment========'
2022-05-02 11:25:42 +00:00
- apt update && apt install -y curl gcc git libwebkit2gtk-4.0-dev libappindicator3-dev
2022-05-02 11:10:57 +00:00
- echo '========Install the Rust toolchain========'
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y && source $HOME/.cargo/env
- echo '========Compile the Neutauri binary========'
2022-05-02 12:52:40 +00:00
- $HOME/.cargo/bin/cargo build --release --bin neutauri_runtime
- $HOME/.cargo/bin/cargo build --release --bin neutauri_bundler
2022-05-02 08:23:39 +00:00
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://git.186526.xyz
files:
- ./target/release/neutauri_bundler
checksum:
- md5
- sha256
when:
event:
- tag