From 5727f6b96f3e941ebe2db415d44f58075d9f9ae0 Mon Sep 17 00:00:00 2001 From: Tim-Paik Date: Sun, 8 May 2022 14:09:07 +0800 Subject: [PATCH] update drone ci --- .drone.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index bef2a51..1d2ccf1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ kind: pipeline type: docker -name: default +name: build steps: - name: build @@ -27,4 +27,21 @@ steps: - sha256 when: event: - - tag \ No newline at end of file + - 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