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
This commit is contained in:
bors 2023-07-02 12:24:40 +00:00
commit 17a48c2652
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ jobs:
echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
- name: Build
run: cargo build --features deny-warnings,internal
run: cargo build --tests --features deny-warnings,internal
- name: Test
run: cargo test --features deny-warnings,internal

View File

@ -106,7 +106,7 @@ jobs:
echo "$SYSROOT/bin" >> $GITHUB_PATH
- name: Build
run: cargo build --features deny-warnings,internal
run: cargo build --tests --features deny-warnings,internal
- name: Test
if: runner.os == 'Linux'