Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,19 +155,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Nightly Rust toolchain
uses: ./.github/actions/setup-builder
- name: Install protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate minimal versions lockfile
run: |
cargo generate-lockfile -Z direct-minimal-versions
- name: Setup MSRV Rust toolchain
uses: ./.github/actions/setup-builder
with:
rust-version: ${{ env.rust_msrv }}
- name: Setup Nightly Rust toolchain
uses: ./.github/actions/setup-builder
- name: Check MSRV
run: |
cargo +${{ env.rust_msrv }} check --locked --workspace
run: make check-msrv
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ fix-toml: install-taplo-cli
check-toml: install-taplo-cli
taplo check

NIGHTLY_VERSION := $(shell awk -F'"' '/^channel/ {print $$2}' rust-toolchain.toml)
MSRV_VERSION := $(shell awk -F'"' '/^rust-version/ {print $$2}' Cargo.toml)

check-msrv:
@set -e; \
trap 'git restore Cargo.lock' EXIT; \
cargo +$(NIGHTLY_VERSION) generate-lockfile -Z direct-minimal-versions; \
cargo +$(MSRV_VERSION) check --locked --workspace

check: check-fmt check-clippy check-toml cargo-machete

doc-test:
Expand Down
Loading