Add check_licenses to CI.

The artifact-caching logic is taken from other examples in the
.gitlab-ci.yml.
This commit is contained in:
Nick Mathewson 2022-05-31 14:01:21 -04:00
parent 842e6a697d
commit c8997b652a
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,8 @@ rust-latest:
- rustup show - rustup show
- cargo clippy --all-features --all-targets -- -D warnings - cargo clippy --all-features --all-targets -- -D warnings
- cargo fmt -- --check - 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 - cp cargo-audit $CARGO_HOME/bin/ || cargo install cargo-audit
- ./maint/cargo_audit - ./maint/cargo_audit
- cp $CARGO_HOME/bin/cargo-audit . - cp $CARGO_HOME/bin/cargo-audit .
@ -50,6 +52,7 @@ rust-latest:
paths: paths:
- cargo-audit - cargo-audit
- cargo-sort - cargo-sort
- cargo-license
artifacts: artifacts:
paths: paths:
- target/x86_64-unknown-linux-gnu/debug/arti - target/x86_64-unknown-linux-gnu/debug/arti