Commit 8a9eaef 1 parent b9874fd commit 8a9eaef Copy full SHA for 8a9eaef
File tree 4 files changed +9
-8
lines changed
4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ jobs:
152
152
uses : dtolnay/rust-toolchain@nightly
153
153
154
154
- name : cargo test (debug; all features; -Z minimal-versions)
155
- run : cargo -Z minimal-versions test --all-features
155
+ run : cargo -Z minimal-versions test --all-features --locked
156
156
157
157
format :
158
158
name : Format
@@ -190,7 +190,7 @@ jobs:
190
190
# (below) will have a new lint that we want to suppress.
191
191
# If we suppress (e.g. #![allow(clippy::arc_with_non_send_sync)]),
192
192
# we would get an unknown-lint error from older clippy versions.
193
- run : cargo clippy --workspace -- -D warnings -A unknown-lints
193
+ run : cargo clippy --locked -- workspace -- -D warnings -A unknown-lints
194
194
195
195
clippy-nightly-optional :
196
196
name : Clippy nightly (optional)
@@ -205,7 +205,7 @@ jobs:
205
205
with :
206
206
components : clippy
207
207
- name : Check clippy
208
- run : cargo clippy --workspace -- -D warnings
208
+ run : cargo clippy --locked -- workspace -- -D warnings
209
209
210
210
clang-tidy :
211
211
name : Clang Tidy
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ ExternalProject_Add(
11
11
DOWNLOAD_COMMAND ""
12
12
CONFIGURE_COMMAND ""
13
13
BUILD_COMMAND cbindgen --lang C --output "${CMAKE_SOURCE_DIR} /src/rustls.h" "${CMAKE_SOURCE_DIR} "
14
- COMMAND cargo build "$<IF:$<CONFIG:Release>,--release,-->"
14
+ COMMAND cargo build --locked "$<IF:$<CONFIG:Release>,--release,-->"
15
15
# Rely on cargo checking timestamps, rather than tell CMake where every
16
16
# output is.
17
17
BUILD_ALWAYS true
@@ -20,5 +20,5 @@ ExternalProject_Add(
20
20
# of "error" in stdout as an error, and we have some test functions that
21
21
# end in "_error". Quiet mode suppresses test names, so this is a
22
22
# sufficient workaround.
23
- TEST_COMMAND cargo test "$<IF:$<CONFIG:Release>,--release,-->" --quiet
23
+ TEST_COMMAND cargo test --locked "$<IF:$<CONFIG:Release>,--release,-->" --quiet
24
24
)
Original file line number Diff line number Diff line change 5
5
endif
6
6
7
7
CARGO ?= cargo
8
+ CARGOFLAGS += --locked
8
9
9
10
CFLAGS := -Werror -Wall -Wextra -Wpedantic -g -I src/
10
11
PROFILE := release
@@ -32,7 +33,7 @@ test: all test-rust
32
33
./tests/client-server.py ./target/client ./target/server
33
34
34
35
test-rust :
35
- ${CARGO} test
36
+ ${CARGO} test --locked
36
37
37
38
target :
38
39
mkdir -p $@
Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ test: all
38
38
$(call green_msg, getting 'https://httpbin.org/headers' ...)
39
39
target/client.exe httpbin.org 443 /headers
40
40
$(call green_msg, Running 'cargo test')
41
- cargo test
41
+ cargo test --locked
42
42
43
43
$(RUSTLS_LIB): src/lib.rs Cargo.toml
44
44
$(call green_msg, Building '$@')
45
- RUSTFLAGS="--print native-static-libs" cargo build --release
45
+ RUSTFLAGS="--print native-static-libs" cargo build --release --locked
46
46
@echo
47
47
48
48
%.obj: tests/%.c
You can’t perform that action at this time.
0 commit comments