33
33
echo "===== freebsd-version ====="
34
34
freebsd-version
35
35
36
- cargo build --all-targets && cargo test && cargo test -- --ignored stress && cargo test --manifest-path fuzz/Cargo.toml && cargo test -p quinn-udp --benches
36
+ cargo build --locked -- all-targets && cargo test --locked && cargo test --locked -- -- ignored stress && cargo test --locked -- manifest-path fuzz/Cargo.toml && cargo test --locked -p quinn-udp --benches
37
37
38
38
test-netbsd :
39
39
name : test on netbsd
58
58
echo "===== uname -a ====="
59
59
uname -a
60
60
61
- cargo build --all-targets && cargo test && cargo test -- --ignored stress && cargo test --manifest-path fuzz/Cargo.toml && cargo test -p quinn-udp --benches
61
+ cargo build --locked -- all-targets && cargo test --locked && cargo test --locked -- -- ignored stress && cargo test --locked -- manifest-path fuzz/Cargo.toml && cargo test --locked -p quinn-udp --benches
62
62
63
63
test-solaris :
64
64
name : test on solaris
81
81
# Unlike others, don't un-ignore stress tests, because they hang on Solaris
82
82
run : |
83
83
export PATH=$HOME/.rust_solaris/bin:$PATH
84
- cargo build --all-targets && cargo test --manifest-path fuzz/Cargo.toml && cargo test -p quinn-udp --benches
84
+ cargo build --locked -- all-targets && cargo test --locked -- manifest-path fuzz/Cargo.toml && cargo test --locked -p quinn-udp --benches
85
85
86
86
test-illumos :
87
87
name : test on illumos
99
99
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
100
100
run : |
101
101
. "$HOME/.cargo/env"
102
- cargo build --all-targets && cargo test && cargo test -- --ignored stress && cargo test --manifest-path fuzz/Cargo.toml && cargo test -p quinn-udp --benches
102
+ cargo build --locked -- all-targets && cargo test --locked && cargo test --locked -- -- ignored stress && cargo test --locked -- manifest-path fuzz/Cargo.toml && cargo test --locked -p quinn-udp --benches
103
103
104
104
test :
105
105
strategy :
@@ -120,13 +120,13 @@ jobs:
120
120
with :
121
121
toolchain : ${{ matrix.rust }}
122
122
- uses : Swatinem/rust-cache@v2
123
- - run : cargo build --all-targets
124
- - run : cargo test
125
- - run : cargo test -- --ignored stress
126
- - run : cargo test --manifest-path fuzz/Cargo.toml
123
+ - run : cargo build --locked -- all-targets
124
+ - run : cargo test --locked
125
+ - run : cargo test --locked -- --ignored stress
126
+ - run : cargo test --locked -- manifest-path fuzz/Cargo.toml
127
127
if : ${{ matrix.rust }} == "stable"
128
- - run : cargo test -p quinn-udp --benches
129
- - run : cargo test -p quinn-udp --benches --features fast-apple-datapath
128
+ - run : cargo test --locked - p quinn-udp --benches
129
+ - run : cargo test --locked - p quinn-udp --benches --features fast-apple-datapath
130
130
if : ${{ matrix.os }} == "macos-latest"
131
131
132
132
test-aws-lc-rs :
@@ -136,11 +136,11 @@ jobs:
136
136
- uses : dtolnay/rust-toolchain@stable
137
137
- uses : Swatinem/rust-cache@v2
138
138
# Prevent feature unification from selecting *ring* as the crypto provider
139
- - run : RUST_BACKTRACE=1 cargo test --manifest-path quinn-proto/Cargo.toml --no-default-features --features rustls-aws-lc-rs
140
- - run : RUST_BACKTRACE=1 cargo test --manifest-path quinn/Cargo.toml --no-default-features --features rustls-aws-lc-rs,runtime-tokio
139
+ - run : RUST_BACKTRACE=1 cargo test --locked -- manifest-path quinn-proto/Cargo.toml --no-default-features --features rustls-aws-lc-rs
140
+ - run : RUST_BACKTRACE=1 cargo test --locked -- manifest-path quinn/Cargo.toml --no-default-features --features rustls-aws-lc-rs,runtime-tokio
141
141
# FIPS
142
- - run : RUST_BACKTRACE=1 cargo test --manifest-path quinn-proto/Cargo.toml --no-default-features --features rustls-aws-lc-rs-fips
143
- - run : RUST_BACKTRACE=1 cargo test --manifest-path quinn/Cargo.toml --no-default-features --features rustls-aws-lc-rs-fips,runtime-tokio
142
+ - run : RUST_BACKTRACE=1 cargo test --locked -- manifest-path quinn-proto/Cargo.toml --no-default-features --features rustls-aws-lc-rs-fips
143
+ - run : RUST_BACKTRACE=1 cargo test --locked -- manifest-path quinn/Cargo.toml --no-default-features --features rustls-aws-lc-rs-fips,runtime-tokio
144
144
145
145
wasm_test :
146
146
name : test wasm32-unknown-unknown
@@ -155,9 +155,9 @@ jobs:
155
155
- uses : bytecodealliance/actions/wasm-tools/setup@v1
156
156
- uses : cargo-bins/cargo-binstall@main
157
157
158
- - run : cargo test -p quinn-proto --target wasm32-unknown-unknown --no-run
159
- - run : cargo check -p quinn-udp --target wasm32-unknown-unknown --no-default-features --features=tracing,log
160
- - run : cargo rustc -p quinn --target wasm32-unknown-unknown --no-default-features --features=log,platform-verifier,rustls-ring --crate-type=cdylib
158
+ - run : cargo test --locked - p quinn-proto --target wasm32-unknown-unknown --no-run
159
+ - run : cargo check --locked - p quinn-udp --target wasm32-unknown-unknown --no-default-features --features=tracing,log
160
+ - run : cargo rustc --locked - p quinn --target wasm32-unknown-unknown --no-default-features --features=log,platform-verifier,rustls-ring --crate-type=cdylib
161
161
162
162
# If the Wasm file contains any 'import "env"' declarations, then
163
163
# some non-Wasm-compatible code made it into the final code.
@@ -169,7 +169,7 @@ jobs:
169
169
! wasm-tools print --skeleton target/wasm32-unknown-unknown/debug/quinn.wasm | grep 'import "env"'
170
170
171
171
- run : cargo binstall wasm-bindgen-cli --locked --no-confirm
172
- - run : cargo test -p quinn-proto --target wasm32-unknown-unknown
172
+ - run : cargo test --locked - p quinn-proto --target wasm32-unknown-unknown
173
173
174
174
msrv :
175
175
runs-on : ubuntu-latest
@@ -178,7 +178,7 @@ jobs:
178
178
# Note that we must also update the README when changing the MSRV
179
179
180
180
- uses : Swatinem/rust-cache@v2
181
- - run : cargo check --lib --all-features -p quinn-udp -p quinn-proto -p quinn
181
+ - run : cargo check --locked -- lib --all-features -p quinn-udp -p quinn-proto -p quinn
182
182
183
183
lint :
184
184
runs-on : ubuntu-latest
@@ -189,19 +189,19 @@ jobs:
189
189
components : rustfmt, clippy
190
190
- uses : Swatinem/rust-cache@v2
191
191
- run : cargo fmt --all -- --check
192
- - run : cargo check --manifest-path quinn/Cargo.toml --all-targets --no-default-features
193
- - run : cargo clippy --all-targets -- -D warnings
192
+ - run : cargo check --locked -- manifest-path quinn/Cargo.toml --all-targets --no-default-features
193
+ - run : cargo clippy --locked -- all-targets -- -D warnings
194
194
- uses : dtolnay/rust-toolchain@stable
195
195
with :
196
196
components : clippy
197
197
- name : doc
198
- run : cargo doc --no-deps --document-private-items
198
+ run : cargo doc --locked -- no-deps --document-private-items
199
199
env :
200
200
RUSTDOCFLAGS : -Dwarnings
201
201
- name : lint fuzz
202
202
run : |
203
203
cd fuzz
204
- cargo clippy -- -D warnings
204
+ cargo clippy --locked -- -D warnings
205
205
206
206
audit :
207
207
runs-on : ubuntu-latest
0 commit comments