update drone ci

This commit is contained in:
Tim-Paik 2022-05-08 14:09:07 +08:00
parent 1054231a72
commit 5727f6b96f
Signed by: Tim-Paik
GPG Key ID: DC36A050DB42566D
1 changed files with 19 additions and 2 deletions

View File

@ -1,6 +1,6 @@
kind: pipeline
type: docker
name: default
name: build
steps:
- name: build
@ -27,4 +27,21 @@ steps:
- sha256
when:
event:
- tag
- 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
- echo '========Run Cargo Clippy========'
- $HOME/.cargo/bin/cargo clippy