From e16836d8ca44a65943389823dab47a8c39a3afaa Mon Sep 17 00:00:00 2001 From: Xingqiu Xu Date: Thu, 1 Oct 2026 03:04:06 +0800 Subject: [PATCH] ci: check the MSRV on every shipped target The 1.88 promise covers the macOS and Windows artifacts too, but the job only type-checked the Linux host. Checking the four shipped targets costs seconds because cargo check does not link, and it is the only thing that would catch a newer std API on a platform-specific path. Refs #38 Signed-off-by: Xingqiu Xu --- .github/workflows/ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce52a98..2668a1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,13 +121,26 @@ jobs: uses: dtolnay/rust-toolchain@stable with: toolchain: 1.88.0 + targets: x86_64-apple-darwin,aarch64-apple-darwin,x86_64-pc-windows-msvc,aarch64-pc-windows-msvc - name: Cache Cargo dependencies uses: Swatinem/rust-cache@v2 - - name: Check all targets with the MSRV + - name: Check the host with the MSRV run: cargo check --all-targets --locked + - name: Check every shipped target with the MSRV + run: | + for target in \ + x86_64-apple-darwin \ + aarch64-apple-darwin \ + x86_64-pc-windows-msvc \ + aarch64-pc-windows-msvc + do + echo "== $target ==" + cargo check --target "$target" --all-targets --locked + done + audit: name: Dependency Audit runs-on: ubuntu-latest