From c590074637b219e2e40742ea2b3ce5a83dd6b70f Mon Sep 17 00:00:00 2001 From: Brad Campbell Date: Mon, 23 Dec 2024 13:43:13 -0500 Subject: [PATCH] CI: add MSRV check with the cargo-hack tool --- .github/workflows/ci.yml | 2 ++ Makefile | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f172cc7dae..2c7ca52ca6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,6 +66,8 @@ jobs: run: make ci-job-syntax - name: ci-job-compilation run: make ci-job-compilation + - name: ci-job-msrv + run: make ci-job-msrv - name: ci-job-debug-support-targets run: make ci-job-debug-support-targets - name: ci-job-collect-artifacts diff --git a/Makefile b/Makefile index b9de7ede8d..d3275b7fe4 100644 --- a/Makefile +++ b/Makefile @@ -307,6 +307,7 @@ ci-runner-github-clippy:\ ci-runner-github-build:\ ci-job-syntax\ ci-job-compilation\ + ci-job-msrv\ ci-job-debug-support-targets\ ci-job-collect-artifacts $(call banner,CI-Runner: GitHub build runner DONE) @@ -352,6 +353,14 @@ ci-runner-netlify:\ +### ci-runner-github-setup jobs: +.PHONY: ci-job-cargo-hack +ci-job-cargo-hack: + $(call banner,CI-Job: Install cargo-hack) + cargo install cargo-hack + $(call banner,CI-Job: Install cargo-hack DONE) + + ### ci-runner-github-format jobs: .PHONY: ci-job-format ci-job-format: licensecheck format-check @@ -415,6 +424,11 @@ ci-job-compilation: $(call banner,CI-Job: Compilation) @NOWARNINGS=true $(MAKE) allboards +.PHONY: ci-job-msrv +ci-job-msrv: ci-job-cargo-hack + $(call banner,CI-Job: MSRV Check) + @cd boards/hail && cargo hack check --rust-version --target thumbv7em-none-eabihf + .PHONY: ci-job-debug-support-targets ci-job-debug-support-targets: $(call banner, CI-Job: Debug Support Targets)