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:
parent
70924fe247
commit
0b207f679a
2 changed files with 9 additions and 2 deletions
|
|
@ -36,8 +36,8 @@ steps:
|
||||||
export CARGO_HOME=/home/gbuser/.cargo
|
export CARGO_HOME=/home/gbuser/.cargo
|
||||||
export RUSTC_WRAPPER=sccache
|
export RUSTC_WRAPPER=sccache
|
||||||
sccache --start-server || true
|
sccache --start-server || true
|
||||||
CARGO_BUILD_JOBS=24 cargo build -p botserver --bin botserver
|
CARGO_BUILD_JOBS=24 cargo build -p botserver --bin botserver --profile fast
|
||||||
CARGO_BUILD_JOBS=24 cargo build -p botui --bin botui --release --features embed-ui
|
CARGO_BUILD_JOBS=24 cargo build -p botui --bin botui --profile fast --features embed-ui
|
||||||
sccache --show-stats || true
|
sccache --show-stats || true
|
||||||
|
|
||||||
- name: Deploy to Stage
|
- name: Deploy to Stage
|
||||||
|
|
|
||||||
|
|
@ -233,6 +233,13 @@ strip = true
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
|
||||||
|
[profile.fast]
|
||||||
|
inherits = "release"
|
||||||
|
lto = false
|
||||||
|
opt-level = 3
|
||||||
|
strip = true
|
||||||
|
codegen-units = 16
|
||||||
|
|
||||||
[profile.ci]
|
[profile.ci]
|
||||||
inherits = "release"
|
inherits = "release"
|
||||||
lto = false
|
lto = false
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue