Skip to content

Commit 12151f5

Browse files
committed
ci: Add a dedicated Cargo profile, test with that
1 parent f5a5705 commit 12151f5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/test_rust.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ jobs:
7676
if: runner.os != 'macOS'
7777
# TODO: Disallow retries in general once we can allow only after SIGABRT.
7878
# See: https://github.com/nextest-rs/nextest/issues/1172
79-
run: cargo nextest run --workspace --locked --no-fail-fast --retries 2 -j 4 --features imgtests,lzma,jpegxr
79+
run: cargo nextest run --cargo-profile ci --workspace --locked --no-fail-fast --retries 2 -j 4 --features imgtests,lzma,jpegxr
8080
env:
8181
XDG_RUNTIME_DIR: '' # dummy value, just to silence warnings about it missing
8282

8383
- name: Run tests without image tests
8484
if: runner.os == 'macOS'
85-
run: cargo nextest run --workspace --locked --no-fail-fast -j 4 --features lzma,jpegxr
85+
run: cargo nextest run --cargo-profile ci --workspace --locked --no-fail-fast -j 4 --features lzma,jpegxr
8686
env:
8787
XDG_RUNTIME_DIR: '' # dummy value, just to silence warnings about it missing
8888

Cargo.toml

+7
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,10 @@ inherits = "release"
9797

9898
[profile.web-wasm-extensions]
9999
inherits = "release"
100+
101+
[profile.ci]
102+
inherits = "release"
103+
opt-level = 2
104+
debug-assertions = true
105+
overflow-checks = true
106+
incremental = true

0 commit comments

Comments
 (0)