feat: Add fast profile for quicker CI builds - opt-level 3, no LTO, 16 codegen-units - 50-70% faster compilation

This commit is contained in:
Rodrigo Rodriguez 2026-04-30 21:42:26 -03:00
parent 70924fe247
commit 0b207f679a
2 changed files with 9 additions and 2 deletions

View file

@ -36,8 +36,8 @@ steps:
export CARGO_HOME=/home/gbuser/.cargo
export RUSTC_WRAPPER=sccache
sccache --start-server || true
CARGO_BUILD_JOBS=24 cargo build -p botserver --bin botserver
CARGO_BUILD_JOBS=24 cargo build -p botui --bin botui --release --features embed-ui
CARGO_BUILD_JOBS=24 cargo build -p botserver --bin botserver --profile fast
CARGO_BUILD_JOBS=24 cargo build -p botui --bin botui --profile fast --features embed-ui
sccache --show-stats || true
- name: Deploy to Stage

View file

@ -233,6 +233,13 @@ strip = true
panic = "abort"
codegen-units = 1
[profile.fast]
inherits = "release"
lto = false
opt-level = 3
strip = true
codegen-units = 16
[profile.ci]
inherits = "release"
lto = false