Skip to content

Commit 17a48c2

Browse files
committed
Auto merge of #11053 - Alexendoo:ci-build-tests, r=flip1995
Use `cargo build --tests` in CI I noticed that we run a `cargo build` but end up downloading/building a bunch of deps after that for tests in CI https://github.com/rust-lang/rust-clippy/actions/runs/5426673277/jobs/9869019973#step:6:12 https://github.com/rust-lang/rust-clippy/actions/runs/5426673277/jobs/9869019973#step:7:11 This builds the tests in the build step too, it may speed up runs by downloading/building more in parallel changelog: none
2 parents 1990b72 + 2f7f139 commit 17a48c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/clippy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
5151
5252
- name: Build
53-
run: cargo build --features deny-warnings,internal
53+
run: cargo build --tests --features deny-warnings,internal
5454

5555
- name: Test
5656
run: cargo test --features deny-warnings,internal

.github/workflows/clippy_bors.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
echo "$SYSROOT/bin" >> $GITHUB_PATH
107107
108108
- name: Build
109-
run: cargo build --features deny-warnings,internal
109+
run: cargo build --tests --features deny-warnings,internal
110110

111111
- name: Test
112112
if: runner.os == 'Linux'

0 commit comments

Comments
 (0)