From 6496a6c3fc567b06ace67ba3a9a3821325d564bb Mon Sep 17 00:00:00 2001 From: Gwen Lg Date: Sat, 8 Feb 2025 21:53:00 +0100 Subject: [PATCH] ci(code_check): add `--locked` to cargo steps `--locked` indicate to not check dependency new version. This can reduce step duration, and get locked to versions specified in Cargo.lock. tips from https://corrode.dev/blog/tips-for-faster-ci-builds/#use-the-locked-flag --- .github/workflows/code_check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code_check.yml b/.github/workflows/code_check.yml index 703d095..fca5083 100644 --- a/.github/workflows/code_check.yml +++ b/.github/workflows/code_check.yml @@ -49,13 +49,13 @@ jobs: id: cargo_clippy if: $${{ always() }} run: | - cargo clippy --profile=test --features ${{ matrix.features }} + cargo clippy --locked --profile=test --features ${{ matrix.features }} - name: "Cargo test" id: cargo_test if: $${{ always() }} run: | - cargo test --features ${{ matrix.features }} + cargo test --locked --features ${{ matrix.features }} - name: "Cargo formatting" id: cargo_fmt