Skip to content

Commit

Permalink
CI: add MSRV check with the cargo-hack tool
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Dec 23, 2024
1 parent b842f65 commit c590074
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c590074

Please sign in to comment.