Skip to content

Commit 3f4e4f5

Browse files
committed
Set opt-level = 1 on dev profile
1 parent d08f1c3 commit 3f4e4f5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ jobs:
4545
- name: Cache Dependencies
4646
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
4747

48+
- name: Bump opt-level
49+
if: matrix.os == 'ubuntu-latest'
50+
run: sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml
51+
4852
- name: Compile
4953
run: cargo test --no-run --locked
5054

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ exclude = ["crates/proc-macro-test/imp"]
66
# Disabling debug info speeds up builds a bunch,
77
# and we don't rely on it for debugging that much.
88
debug = 0
9+
opt-level = 1
910

1011
[profile.dev.package]
1112
# These speed up local tests.

0 commit comments

Comments
 (0)