From 70e09237a372a49dade794ef7e9dadc407612a7a Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Thu, 6 Feb 2025 19:34:43 +0000 Subject: [PATCH] ci(build): run `cargo check` on MSRV --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d7ee88a21fde..c6e72b8c57b7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,6 +98,20 @@ jobs: # cargo ck # no need to check because it's already checked in linux cargo test --all-features + check-msrv: + name: Check MSRV + runs-on: ubuntu-latest + steps: + - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 + - run: sed -i -E 's/channel = ".+"/channel = "1.81.0"/g' rust-toolchain.toml + - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0 + with: + # warm cache factory for all other CI jobs + # cache `target` directory to avoid download crates + save-cache: ${{ github.ref_name == 'main' }} + cache-key: check-msrv + - run: cargo ck + test-wasm32-wasip1-threads: name: Test wasm32-wasip1-threads if: ${{ github.ref_name == 'main' }}