diff --git a/.gitea/Makefile.manifest-lint b/.gitea/Makefile.manifest-lint new file mode 100644 index 00000000..b2c76d7e --- /dev/null +++ b/.gitea/Makefile.manifest-lint @@ -0,0 +1,32 @@ +# 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 diff --git a/.gitea/workflows/manifest_lints.yaml b/.gitea/workflows/manifest_lints.yaml index f473a157..139c700e 100644 --- a/.gitea/workflows/manifest_lints.yaml +++ b/.gitea/workflows/manifest_lints.yaml @@ -76,16 +76,13 @@ jobs: if: success() || failure() run: | source "${HOME}/.cargo/env" - 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 + make -f ./.gitea/Makefile.manifest-lint cargo-msrv - name: cargo-sort if: success() || failure() run: | source "${HOME}/.cargo/env" - 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 + make -f ./.gitea/Makefile.manifest-lint cargo-sort - name: Check debian/changelog is up-to-date. if: success() || failure() run: | - ./scripts/check_debian_changelog.sh + make -f ./.gitea/Makefile.manifest-lint check-debian-changelog