Skip to content

Commit 1eea099

Browse files
committed
ci: use cargo test --no-run for build step
This ensures test binaries are built with the test profile, matching what the test step needs. Avoids recompilation.
1 parent 3df468d commit 1eea099

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
with:
3131
shared-key: "${{ steps.cache-week.outputs.week }}-${{ inputs.os }}"
3232
cache-on-failure: true
33-
- name: Build workspace
34-
run: cargo build --workspace --all-targets --all-features ${{ inputs.exclude-crates && format('--exclude {0}', inputs.exclude-crates) || '' }}
33+
- name: Build workspace (including test binaries)
34+
run: cargo test --workspace --all-features --no-run ${{ inputs.exclude-crates && format('--exclude {0}', inputs.exclude-crates) || '' }}
3535

3636
test:
3737
name: "test: ${{ matrix.group }} (${{ inputs.os }})"

0 commit comments

Comments
 (0)