From 35580315271b093920f200eae3b7c951cd91048e Mon Sep 17 00:00:00 2001 From: Matthias Endler Date: Sun, 21 Jan 2024 01:55:46 +0100 Subject: [PATCH] Try to improve build times (#1350) Based on https://corrode.dev/blog/tips-for-faster-rust-compile-times/ --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9372c26..eccb142 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,8 @@ on: env: CARGO_TERM_COLOR: always + CARGO_INCREMENTAL: 0 + RUSTFLAGS: -D warnings jobs: test: @@ -23,8 +25,10 @@ jobs: - uses: dtolnay/rust-toolchain@stable - uses: taiki-e/install-action@nextest - uses: Swatinem/rust-cache@v2 - - name: Run tests - run: make test + - name: Compile + run: cargo test --no-run --locked + - name: Test + run: cargo test -- --nocapture --quiet lint: runs-on: ubuntu-latest @@ -43,7 +47,6 @@ jobs: uses: actions-rs/cargo@v1 with: command: clippy - # --all-targets makes it lint tests too args: --all-targets --all-features -- -D warnings publish-check: