From c2de4781cc91bc5ea961ba44e3924f6740838836 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Tue, 28 Apr 2026 15:04:50 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20Adicionar=20sccache=20expl=C3=ADcito=20n?= =?UTF-8?q?o=20build=20do=20workflow=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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) --- .forgejo/workflows/botserver.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.forgejo/workflows/botserver.yaml b/.forgejo/workflows/botserver.yaml index 699135d6..7c92253d 100644 --- a/.forgejo/workflows/botserver.yaml +++ b/.forgejo/workflows/botserver.yaml @@ -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: |