Skip to content

Commit 43e4473

Browse files
committed
GitHub CI: Generate Cargo.lock once
1 parent 56e93df commit 43e4473

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/continuous-integration.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,50 +28,55 @@ jobs:
2828
- name: Cache Rust toolchain and build artifacts
2929
uses: Swatinem/rust-cache@v1
3030

31+
- name: Generate Cargo.lock
32+
uses: actions-rs/cargo@v1
33+
with:
34+
command: generate-lockfile
35+
3136
- name: Check crates/msr-core
3237
uses: actions-rs/cargo@v1
3338
with:
3439
command: check
35-
args: --manifest-path crates/msr-core/Cargo.toml
40+
args: --locked --manifest-path crates/msr-core/Cargo.toml
3641

3742
- name: Check crates/msr-plugin
3843
uses: actions-rs/cargo@v1
3944
with:
4045
command: check
41-
args: --manifest-path crates/msr-plugin/Cargo.toml
46+
args: --locked --manifest-path crates/msr-plugin/Cargo.toml
4247

4348
- name: Check crates/msr-legacy
4449
uses: actions-rs/cargo@v1
4550
with:
4651
command: check
47-
args: --manifest-path crates/msr-legacy/Cargo.toml
52+
args: --locked --manifest-path crates/msr-legacy/Cargo.toml
4853

4954
- name: Check plugins/csv-event-journal-msr-plugin
5055
uses: actions-rs/cargo@v1
5156
with:
5257
command: check
53-
args: --manifest-path plugins/csv-event-journal-msr-plugin/Cargo.toml
58+
args: --locked --manifest-path plugins/csv-event-journal-msr-plugin/Cargo.toml
5459

5560
- name: Check plugins/csv-register-recorder-msr-plugin
5661
uses: actions-rs/cargo@v1
5762
with:
5863
command: check
59-
args: --manifest-path plugins/csv-register-recorder-msr-plugin/Cargo.toml
64+
args: --locked --manifest-path plugins/csv-register-recorder-msr-plugin/Cargo.toml
6065

6166
- name: Build tests with all features enabled
6267
uses: actions-rs/cargo@v1
6368
with:
6469
command: test
65-
args: --workspace --all-features --no-run
70+
args: --locked --workspace --all-features --no-run
6671

6772
- name: Run tests with all features enabled
6873
uses: actions-rs/cargo@v1
6974
with:
7075
command: test
71-
args: --workspace --all-features --locked -- --nocapture --quiet
76+
args: --locked --workspace --all-features -- --nocapture --quiet
7277

7378
- name: Build release with default features
7479
uses: actions-rs/cargo@v1
7580
with:
7681
command: build
77-
args: --release --locked
82+
args: --locked --release

0 commit comments

Comments
 (0)