You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
meli/.gitea/Makefile.manifest-lint

33 lines
1.3 KiB
Makefile

# SPDX-License-Identifier: EUPL-1.2
#
# Makefile for: "Build and run Tests" workflow, in .gitea/workflows/build.yaml
.POSIX:
.SUFFIXES:
CARGO_INCREMENTAL ?= 0
CARGO_NET_RETRY ?= 10
CARGO_REGISTRIES_CRATES_IO_PROTOCOL ?= sparse
RUSTFLAGS ?= -D warnings -W unreachable-pub -W rust-2021-compatibility -C debuginfo=0
RUSTUP_MAX_RETRIES ?= 10
RUST_BACKTRACE ?= short
.PHONY: all
all: cargo-msrv cargo-sort check-debian-changelog
@printf "All completed.\n"
.PHONY: cargo-msrv
cargo-msrv:
@printf "cargo-msrv\n"
cargo-msrv --output-format json --log-level trace --log-target stdout --path meli verify -- cargo check --all-targets
cargo-msrv --output-format json --log-level trace --log-target stdout --path melib verify -- cargo check --all-targets
.PHONY: cargo-sort
cargo-sort:
@printf "cargo-sort\n"
cargo-sort --check --check-format --grouped --order package,bin,lib,dependencies,features,build-dependencies,dev-dependencies,workspace fuzz
cargo-sort --check --check-format --grouped --order package,bin,lib,dependencies,features,build-dependencies,dev-dependencies,workspace tools
cargo-sort --check --check-format --grouped --order package,bin,lib,dependencies,features,build-dependencies,dev-dependencies,workspace --workspace
.PHONY: check-debian-changelog
check-debian-changelog:
@printf "Check debian/changelog is up-to-date.\n"
./scripts/check_debian_changelog.sh