From a15afd14ff258cc86ce4d3d19a9fa6a86fae031c Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Sun, 25 Jan 2026 18:59:25 -0300 Subject: [PATCH] Optimize CI: use 1 job to avoid hanging, init sccache --- .forgejo/workflows/botserver.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/botserver.yaml b/.forgejo/workflows/botserver.yaml index e9c95f3cb..f29b130fb 100644 --- a/.forgejo/workflows/botserver.yaml +++ b/.forgejo/workflows/botserver.yaml @@ -7,7 +7,7 @@ on: branches: ["main"] env: - CARGO_BUILD_JOBS: 2 + CARGO_BUILD_JOBS: 1 CARGO_INCREMENTAL: 0 CARGO_NET_RETRY: 10 @@ -71,6 +71,7 @@ jobs: chmod +x $HOME/.cargo/bin/sccache echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV echo "SCCACHE_DIR=/opt/gbo/sccache" >> $GITHUB_ENV + $HOME/.cargo/bin/sccache --start-server || true - name: Setup environment @@ -79,9 +80,10 @@ jobs: - name: Build debug working-directory: workspace run: | - cargo build -p botserver -p botui -j 2 2>&1 | tee /tmp/build.log + cargo build -p botserver -p botui -j 1 2>&1 | tee /tmp/build.log ls -lh target/debug/botserver ls -lh target/debug/botui + sccache --show-stats || true - name: Save build log if: always()