Update botserver workflow
Some checks failed
BotServer CI/CD / build (push) Failing after 9s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-10 12:27:24 -03:00
parent 5e955d3196
commit 28f811bb7f

View file

@ -29,22 +29,19 @@ jobs:
mkdir -p $WORKSPACE
cd $WORKSPACE
# Clone or update gb-ws (main workspace with Cargo.toml)
if [ -d gb-ws/.git ]; then
git -C gb-ws pull --ff-only origin main
else
# Clone gb-ws if it doesn't exist
if [ ! -d gb-ws/.git ]; then
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/gb.git gb-ws
fi
# Initialize and update submodules (only botlib and botserver needed)
# Simple pull to get latest changes
git -C gb-ws pull origin main
# Initialize submodules if needed
cd gb-ws
git submodule update --init --depth 1 botlib
git submodule update --init --depth 1 botserver
# Pull latest updates from submodules (fetch and reset to handle divergent histories)
git -C botlib fetch origin main && git -C botlib reset --hard origin/main
git -C botserver fetch origin main && git -C botserver reset --hard origin/main
mkdir -p /home/gbuser/target
- name: Cache sccache