ci: Add a dedicated Cargo profile, test with that

This commit is contained in:
TÖRÖK Attila 2024-02-16 15:57:43 +01:00
parent f5a5705381
commit 12151f5125
2 changed files with 9 additions and 2 deletions

View File

@ -76,13 +76,13 @@ jobs:
if: runner.os != 'macOS'
# TODO: Disallow retries in general once we can allow only after SIGABRT.
# See: https://github.com/nextest-rs/nextest/issues/1172
run: cargo nextest run --workspace --locked --no-fail-fast --retries 2 -j 4 --features imgtests,lzma,jpegxr
run: cargo nextest run --cargo-profile ci --workspace --locked --no-fail-fast --retries 2 -j 4 --features imgtests,lzma,jpegxr
env:
XDG_RUNTIME_DIR: '' # dummy value, just to silence warnings about it missing
- name: Run tests without image tests
if: runner.os == 'macOS'
run: cargo nextest run --workspace --locked --no-fail-fast -j 4 --features lzma,jpegxr
run: cargo nextest run --cargo-profile ci --workspace --locked --no-fail-fast -j 4 --features lzma,jpegxr
env:
XDG_RUNTIME_DIR: '' # dummy value, just to silence warnings about it missing

View File

@ -97,3 +97,10 @@ inherits = "release"
[profile.web-wasm-extensions]
inherits = "release"
[profile.ci]
inherits = "release"
opt-level = 2
debug-assertions = true
overflow-checks = true
incremental = true