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