generalbots/.forgejo/workflows/botui.yaml
Rodrigo Rodriguez (Pragmatismo) 4380b39ac5
Some checks failed
Bottest CI / build (push) Waiting to run
Botlib CI / build (push) Successful in 4s
BotServer CI / build (push) Has been cancelled
BotUI CI / build (push) Has been cancelled
fix: Remove sccache from CI (permission issues), fix deploy binary paths
- Remove RUSTC_WRAPPER=sccache from all workflows (permission denied
  in act container environment)
- Fix deploy paths to use CARGO_TARGET_DIR=/opt/gbo/work/target
  instead of relative target/debug
- Remove path triggers from botserver workflow (all pushes trigger)
- Add mkdir for target and bin dirs in setup steps
2026-04-22 02:07:07 +00:00

31 lines
1 KiB
YAML

name: BotUI CI
on:
push:
branches: [main]
env:
CARGO_TARGET_DIR: /opt/gbo/work/target
PATH: /home/gbuser/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
jobs:
build:
runs-on: gbo
steps:
- name: Setup
run: |
cd /opt/gbo/work/generalbots
git reset --hard HEAD
git clean -fd
git pull
mkdir -p /opt/gbo/work/target
mkdir -p /opt/gbo/bin
- name: Build
run: |
cd /opt/gbo/work/generalbots
CARGO_BUILD_JOBS=4 cargo build -p botui --bin botui
- name: Deploy
run: |
timeout 5 bash -c 'while pgrep -x botui > /dev/null; do pkill -x botui; sleep 0.5; done' || true
cp -f /opt/gbo/work/target/debug/botui /opt/gbo/bin/
chmod +x /opt/gbo/bin/botui
cd /opt/gbo/bin && RUST_LOG=info nohup ./botui >> /opt/gbo/logs/stdout.log 2>> /opt/gbo/logs/stderr.log &
sleep 3
pgrep -x botui && echo "BotUI Deployed" || echo "Failed"