From c8997b652a614d5e6a8efb273d004677d16cc3a4 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 31 May 2022 14:01:21 -0400 Subject: [PATCH] Add check_licenses to CI. The artifact-caching logic is taken from other examples in the .gitlab-ci.yml. --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 34286c36a..2521003fc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,6 +39,8 @@ rust-latest: - rustup show - cargo clippy --all-features --all-targets -- -D warnings - cargo fmt -- --check + - cp cargo-license $CARGO_HOME/bin/ || cargo install cargo-license + - ./maint/check_licenses - cp cargo-audit $CARGO_HOME/bin/ || cargo install cargo-audit - ./maint/cargo_audit - cp $CARGO_HOME/bin/cargo-audit . @@ -50,6 +52,7 @@ rust-latest: paths: - cargo-audit - cargo-sort + - cargo-license artifacts: paths: - target/x86_64-unknown-linux-gnu/debug/arti