fix: correct YAML indentation in CI workflow
All checks were successful
BotServer CI/CD / build (push) Successful in 4m56s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-09 18:33:53 -03:00
parent 8dddc916ff
commit a51eff0fd3

View file

@ -67,43 +67,43 @@ jobs:
echo "All system dependencies already installed" echo "All system dependencies already installed"
fi fi
- name: Build BotServer - name: Build BotServer
working-directory: /opt/gbo/data/botserver working-directory: /opt/gbo/data/botserver
run: | run: |
set -e set -e
export SCCACHE_IDLE_TIMEOUT=300 export SCCACHE_IDLE_TIMEOUT=300
export SCCACHE_CACHE_SIZE=10G export SCCACHE_CACHE_SIZE=10G
sccache --stop-server 2>/dev/null || true sccache --stop-server 2>/dev/null || true
sleep 1 sleep 1
sccache --start-server sccache --start-server
echo "=== Starting build in background ===" echo "=== Starting build in background ==="
cargo build -p botserver -j 8 > /tmp/build.log 2>&1 & cargo build -p botserver -j 8 > /tmp/build.log 2>&1 &
BUILD_PID=$! BUILD_PID=$!
echo "Build PID: $BUILD_PID" echo "Build PID: $BUILD_PID"
echo "=== Waiting for build to complete (PID: $BUILD_PID) ===" echo "=== Waiting for build to complete (PID: $BUILD_PID) ==="
while kill -0 $BUILD_PID 2>/dev/null; do while kill -0 $BUILD_PID 2>/dev/null; do
echo "Build in progress... (sleeping 30s)" echo "Build in progress... (sleeping 30s)"
sleep 30 sleep 30
done done
wait $BUILD_PID wait $BUILD_PID
EXIT_CODE=$? EXIT_CODE=$?
echo "=== Build finished with exit code: $EXIT_CODE ===" echo "=== Build finished with exit code: $EXIT_CODE ==="
if [ $EXIT_CODE -ne 0 ]; then if [ $EXIT_CODE -ne 0 ]; then
echo "=== Build FAILED ===" echo "=== Build FAILED ==="
tail -100 /tmp/build.log tail -100 /tmp/build.log
exit $EXIT_CODE exit $EXIT_CODE
fi fi
echo "=== sccache stats ===" echo "=== sccache stats ==="
sccache --show-stats sccache --show-stats
echo "=== Binary info ===" echo "=== Binary info ==="
ls -lh target/debug/botserver ls -lh target/debug/botserver
stat -c '%y' target/debug/botserver stat -c '%y' target/debug/botserver
- name: Save build log - name: Save build log
if: always() if: always()