Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Commit 130b457

Browse files
authored
Run Cargo with --locked on CI. (#313)
* Run Cargo with --locked on CI. * Update Cargo.lock.
1 parent 6c7ca97 commit 130b457

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ jobs:
5757
run: rustup component add rust-src rustc-dev llvm-tools-preview
5858
# Fetch dependencies in a separate step to clearly show how long each part
5959
# of the testing takes
60-
- name: cargo fetch
61-
run: cargo fetch --target ${{ matrix.target }}
60+
- name: cargo fetch --locked
61+
run: cargo fetch --locked --target ${{ matrix.target }}
6262
- name: Run tests
6363
shell: bash
6464
run: .github/workflows/test.sh ${{ runner.os }}
@@ -107,10 +107,10 @@ jobs:
107107
echo "${HOME}/spirv-tools/install/bin" >> $GITHUB_PATH
108108
- name: Install rustup components
109109
run: rustup component add rustfmt clippy rust-src rustc-dev llvm-tools-preview
110+
- name: cargo fetch --locked
111+
run: cargo fetch --locked
110112
- name: Rustfmt
111113
run: cargo fmt --all -- --check
112-
- name: cargo fetch
113-
run: cargo fetch
114114
- name: Clippy
115115
run: .github/workflows/clippy.sh
116116

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)