-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: dedicated profile for release + debug_assert
We want to use the `--release` behavior, but doing so directly would disable evaluation of `debug_assert` lines, so we'll selectively override that one option. Updates the "check" and "test" jobs to use the `--profile ci`. Also ensures that "check" covers all targets, including benchmarks, and accordingly cleans up an unused import in same.
- Loading branch information
1 parent
1bd0ef2
commit da391d6
Showing
4 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[profile.ci] | ||
# Using recommended settings from https://nexte.st/book/configuration.html#profiles | ||
failure-output = "immediate-final" | ||
fail-fast = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: check | ||
- name: Install rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Load rust cache | ||
uses: astriaorg/[email protected] | ||
- name: Run cargo check, failing on warnings | ||
run: cargo check --profile ci --all-targets | ||
# It'd be nice to fail on warnings, but we're not ready for that. | ||
# env: | ||
# RUSTFLAGS: "-D warnings" | ||
|
||
test: | ||
name: Test Suite | ||
|
@@ -36,7 +36,7 @@ jobs: | |
- name: Load rust cache | ||
uses: astriaorg/[email protected] | ||
- name: Run tests with nextest | ||
run: cargo nextest run --features ${{ matrix.backend }} | ||
run: cargo nextest run --cargo-profile ci --profile ci --features ${{ matrix.backend }} | ||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters