CI: move manifest_lints.yaml actions to Makefile.manifest-lints

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
pull/490/head
Manos Pitsidianakis 4 weeks ago
parent 598a70f9df
commit 7e800a8f3f
No known key found for this signature in database
GPG Key ID: 7729C7707F7E09D0

@ -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

@ -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

Loading…
Cancel
Save