neutauri/.drone.yml

51 lines
1.5 KiB
YAML
Raw Normal View History

2022-05-02 08:23:39 +00:00
kind: pipeline
type: docker
2022-05-08 06:09:07 +00:00
name: build
2022-05-02 08:23:39 +00:00
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========'
2022-05-02 12:55:49 +00:00
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y
2022-05-02 11:10:57 +00:00
- 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:
2022-05-08 06:09:07 +00:00
- tag
---
kind: pipeline
type: docker
name: clippy
steps:
- name: clippy
image: ubuntu:latest
commands:
- echo '========Install the necessary environment========'
- apt update && apt install -y curl gcc git libwebkit2gtk-4.0-dev libappindicator3-dev
- echo '========Install the Rust toolchain========'
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -c clippy -y
2022-05-08 06:28:32 +00:00
- echo '========Compile the Neutauri binary========'
- $HOME/.cargo/bin/cargo build --release --bin neutauri_runtime
- $HOME/.cargo/bin/cargo build --release --bin neutauri_bundler
2022-05-08 06:09:07 +00:00
- echo '========Run Cargo Clippy========'
- $HOME/.cargo/bin/cargo clippy