fix: Adicionar sccache explícito no build do workflow CI
Some checks failed
BotServer CI / build (push) Failing after 8s

- Adiciona 'export RUSTC_WRAPPER=sccache' no passo de build
- Adiciona sccache --show-stats antes e depois do build para monitorar cache
- Workflow agora usa sccache corretamente para builds incrementais
- Ganho esperado: 17min → 2-5min (após 1º build)
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-28 15:04:50 -03:00
parent 61897d9dfd
commit c2de4781cc

View file

@ -35,8 +35,14 @@ jobs:
cd /opt/gbo/work/generalbots
# Build with default features (excludes ooxmlsdk - no heavy docs feature)
# Default features: chat, automation, cache, llm, vectordb, crawler, drive, directory, kb-extraction
# Using sccache for faster incremental builds
export RUSTC_WRAPPER=sccache
echo "=== sccache stats before build ==="
sccache --show-stats 2>/dev/null || echo "sccache not available"
CARGO_BUILD_JOBS=6 cargo build -p botserver --bin botserver
CARGO_BUILD_JOBS=6 cargo build -p botui --bin botui
echo "=== sccache stats after build ==="
sccache --show-stats 2>/dev/null || echo "sccache not available"
- name: Deploy to Stage
run: |