From 0b207f679a0aebe821059a2909bfe5074698a894 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Thu, 30 Apr 2026 21:42:26 -0300 Subject: [PATCH] feat: Add fast profile for quicker CI builds - opt-level 3, no LTO, 16 codegen-units - 50-70% faster compilation --- .forgejo/workflows/botserver.yaml | 4 ++-- Cargo.toml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/botserver.yaml b/.forgejo/workflows/botserver.yaml index a1e0be08..d45882c1 100644 --- a/.forgejo/workflows/botserver.yaml +++ b/.forgejo/workflows/botserver.yaml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index fa46b0c4..3ada7f2f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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