@@ -26,14 +26,13 @@ jobs:
26
26
uses : Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
27
27
- name : Clippy
28
28
# Using --all-targets so tests are checked and --deny to fail on warnings.
29
- # Not using --locked here and below since Cargo.lock is in .gitignore.
30
- run : cargo clippy --all-targets --all-features -- --deny warnings
29
+ run : cargo clippy --all-targets --all-features --locked -- --deny warnings
31
30
- name : rustfmt
32
31
run : cargo fmt -- --check
33
32
- name : Check docs
34
33
# Using RUSTDOCFLAGS until `cargo doc --check` is stabilised:
35
34
# https://github.com/rust-lang/cargo/issues/10025
36
- run : RUSTDOCFLAGS="-D warnings" cargo doc --all-features --document-private-items --no-deps
35
+ run : RUSTDOCFLAGS="-D warnings" cargo doc --all-features --document-private-items --no-deps --locked
37
36
38
37
unit-test :
39
38
runs-on : ubuntu-24.04
45
44
- name : Rust Cache
46
45
uses : Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
47
46
- name : Run unit tests
48
- run : cargo test --all-features
47
+ run : cargo test --all-features --locked
49
48
50
49
ruby_integration_test :
51
50
runs-on : ${{ matrix.arch == 'arm64' && 'pub-hk-ubuntu-24.04-arm-medium' || 'ubuntu-24.04' }}
@@ -67,13 +66,13 @@ jobs:
67
66
- name : Rust Cache
68
67
uses : Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
69
68
- name : Cargo build (to make test logs shorter)
70
- run : cargo build
69
+ run : cargo build --locked
71
70
- name : Output CHANGELOG
72
- run : cargo run --bin ruby_changelog -- --version "${{matrix.version}}"
71
+ run : cargo run --locked -- bin ruby_changelog -- --version "${{matrix.version}}"
73
72
- name : Build Ruby
74
- run : cargo run --bin ruby_build -- --version ${{matrix.version}} --base-image ${{matrix.base_image}} --arch ${{matrix.arch}}
73
+ run : cargo run --locked -- bin ruby_build -- --version ${{matrix.version}} --base-image ${{matrix.base_image}} --arch ${{matrix.arch}}
75
74
- name : Check Ruby
76
- run : cargo run --bin ruby_check -- --version ${{matrix.version}} --base-image ${{matrix.base_image}} --arch ${{matrix.arch}}
75
+ run : cargo run --locked -- bin ruby_check -- --version ${{matrix.version}} --base-image ${{matrix.base_image}} --arch ${{matrix.arch}}
77
76
78
77
jruby_integration_test :
79
78
runs-on : ${{ matrix.arch == 'arm64' && 'pub-hk-ubuntu-24.04-arm-medium' || 'ubuntu-24.04' }}
@@ -95,13 +94,13 @@ jobs:
95
94
- name : Rust Cache
96
95
uses : Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
97
96
- name : Cargo build (to make test logs shorter)
98
- run : cargo build
97
+ run : cargo build --locked
99
98
- name : Output CHANGELOG
100
- run : cargo run --bin jruby_changelog -- --version "${{matrix.version}}"
99
+ run : cargo run --locked -- bin jruby_changelog -- --version "${{matrix.version}}"
101
100
- name : Build JRuby
102
- run : cargo run --bin jruby_build -- --version ${{matrix.version}} --base-image ${{matrix.base_image}}
101
+ run : cargo run --locked -- bin jruby_build -- --version ${{matrix.version}} --base-image ${{matrix.base_image}}
103
102
- name : Check JRuby
104
- run : cargo run --bin jruby_check -- --version ${{matrix.version}} --base-image ${{matrix.base_image}} --arch ${{matrix.arch}}
103
+ run : cargo run --locked -- bin jruby_check -- --version ${{matrix.version}} --base-image ${{matrix.base_image}} --arch ${{matrix.arch}}
105
104
106
105
check_inventory_urls :
107
106
runs-on : ubuntu-24.04
@@ -120,4 +119,4 @@ jobs:
120
119
git fetch origin ${{ github.base_ref }} --depth 1 && \
121
120
git diff --unified=0 remotes/origin/${{ github.base_ref }} ${{matrix.inventory}} | grep '^+' | grep -v '^+++' | cut -c2- > check_inventory.toml
122
121
- name : Check manifest URLs
123
- run : cargo run --bin inventory_check -- check_inventory.toml
122
+ run : cargo run --locked -- bin inventory_check -- check_inventory.toml
0 commit comments