ci: run cargo-semver-checks

This commit is contained in:
Heiko Schaefer 2023-09-10 13:58:46 +02:00
parent e6bb9cccca
commit 46b265637c
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -47,22 +47,6 @@ cargo-fmt:
- cargo +nightly fmt -- --check
cache: [ ]
cargo-deny:
stage: lint
image: rust:latest
before_script:
# The cargo deny binary is cached, so installing it errors if it was
# restored from cache. Ignore that error.
# Clear the cache to force a rebuild.
- cargo install --locked cargo-deny || true
- *report-rust
script:
- cargo deny check
cache:
paths:
- cargo/bin/cargo-deny
key: "deny"
cargo-clippy:
stage: lint
image: rust:latest
@ -82,6 +66,41 @@ cargo-clippy:
# override the key
key: "rust-latest"
semver-checks:
stage: lint
image: rust:latest
before_script:
- mkdir -p /run/user/$UID
- apt update -y -qq
- apt install -y -qq --no-install-recommends git clang make pkg-config nettle-dev libssl-dev capnproto ca-certificates libpcsclite-dev
- apt clean
- *report-rust
script:
- cargo install cargo-semver-checks
- cargo semver-checks -p card-backend -p card-backend-pcsc -p card-backend-scdc -p openpgp-card -p openpgp-card-sequoia
allow_failure: true
cache:
# inherit all general cache settings
<<: *general_cache_config
# override the key
key: "rust-latest"
cargo-deny:
stage: lint
image: rust:latest
before_script:
# The cargo deny binary is cached, so installing it errors if it was
# restored from cache. Ignore that error.
# Clear the cache to force a rebuild.
- cargo install --locked cargo-deny || true
- *report-rust
script:
- cargo deny check
cache:
paths:
- cargo/bin/cargo-deny
key: "deny"
udeps:
stage: udeps
needs: [ ]