Skip to content

Commit 3880c73

Browse files
committed
ci: rely on Cargo.lock for dependency versions
1 parent 5e9b69b commit 3880c73

File tree

3 files changed

+1224
-15
lines changed

3 files changed

+1224
-15
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,48 +49,48 @@ jobs:
4949
uses: seanmiddleditch/gha-setup-ninja@v6
5050

5151
- name: cargo check (default features)
52-
run: cargo check --all-targets
52+
run: cargo check --locked --all-targets
5353

5454
- name: cargo test (debug; default features)
55-
run: cargo test
55+
run: cargo test --locked
5656
env:
5757
RUST_BACKTRACE: 1
5858

5959
- name: cargo test (debug; native-tokio only)
60-
run: cargo test --no-default-features --features native-tokio
60+
run: cargo test --locked --no-default-features --features native-tokio
6161
env:
6262
RUST_BACKTRACE: 1
6363

6464
- name: cargo test (debug; webpki-tokio only)
65-
run: cargo test --no-default-features --features webpki-tokio
65+
run: cargo test --locked --no-default-features --features webpki-tokio
6666
env:
6767
RUST_BACKTRACE: 1
6868

6969
- name: cargo test (debug; defaults+ring)
70-
run: cargo test --no-default-features --features ring,native-tokio,http1,tls12,logging
70+
run: cargo test --locked --no-default-features --features ring,native-tokio,http1,tls12,logging
7171
env:
7272
RUST_BACKTRACE: 1
7373

7474
- name: cargo test (debug; all features)
7575
if: runner.os == 'Linux'
76-
run: cargo test --all-features
76+
run: cargo test --locked --all-features
7777
env:
7878
RUST_BACKTRACE: 1
7979

8080
- name: cargo test (debug; all features, excluding FIPS)
8181
if: runner.os != 'Linux'
82-
run: cargo test --features aws-lc-rs,http1,http2,webpki-tokio,native-tokio,ring,tls12,logging
82+
run: cargo test --locked --features aws-lc-rs,http1,http2,webpki-tokio,native-tokio,ring,tls12,logging
8383
env:
8484
RUST_BACKTRACE: 1
8585

8686
- name: cargo build (debug; no default features)
87-
run: cargo build --no-default-features
87+
run: cargo build --locked --no-default-features
8888

8989
- name: cargo test (debug; no default features; no run)
90-
run: cargo test --no-default-features --no-run
90+
run: cargo test --locked --no-default-features --no-run
9191

9292
- name: cargo test (release; no run)
93-
run: cargo test --release --no-run
93+
run: cargo test --locked --release --no-run
9494

9595
msrv:
9696
runs-on: ubuntu-latest
@@ -106,7 +106,7 @@ jobs:
106106
toolchain: "1.71"
107107

108108
- name: Check MSRV
109-
run: cargo check --lib --all-features
109+
run: cargo check --lib --locked --all-features
110110

111111
semver:
112112
name: Check semver compatibility
@@ -134,7 +134,7 @@ jobs:
134134

135135
- name: cargo doc (all features)
136136
# keep features in sync with Cargo.toml `[package.metadata.docs.rs]` section
137-
run: cargo doc --no-default-features --features http1,http2,webpki-tokio,native-tokio,ring,tls12,logging --no-deps
137+
run: cargo doc --locked --no-default-features --features http1,http2,webpki-tokio,native-tokio,ring,tls12,logging --no-deps
138138
env:
139139
RUSTDOCFLAGS: -Dwarnings
140140

@@ -165,7 +165,7 @@ jobs:
165165
uses: dtolnay/rust-toolchain@stable
166166
with:
167167
components: clippy
168-
- run: cargo clippy --all-features -- --deny warnings
168+
- run: cargo clippy --locked --all-features -- --deny warnings
169169

170170
features:
171171
runs-on: ubuntu-latest
@@ -179,4 +179,4 @@ jobs:
179179
- name: Install cargo-hack
180180
uses: taiki-e/install-action@cargo-hack
181181
- name: Check feature powerset
182-
run: cargo hack --no-dev-deps check --feature-powerset --depth 2
182+
run: cargo hack --no-dev-deps check --locked --feature-powerset --depth 2

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
Cargo.lock
21
target/
32
/.idea

0 commit comments

Comments
 (0)