CI: v17 - Build ONLY botserver, not entire workspace
- Only build -p botserver (not botui, botlib separately) - Initialize only required submodules (botlib, botserver) - Much faster, focused build
This commit is contained in:
parent
39d907c323
commit
c11801fcd8
1 changed files with 6 additions and 9 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
# HASH-BUSTER-20260418-CONTAINER-v16
|
# HASH-BUSTER-20260418-CONTAINER-v17
|
||||||
# Dev machine approach: /opt/gbo/work/botserver
|
# Only build botserver (not entire workspace)
|
||||||
# Pre-installed globally: Rust, Node.js, Python, sccache
|
# Pre-installed globally: Rust, Node.js, Python, sccache
|
||||||
name: BotServer CI/CD
|
name: BotServer CI/CD
|
||||||
|
|
||||||
|
|
@ -28,18 +28,15 @@ jobs:
|
||||||
rm -rf .github
|
rm -rf .github
|
||||||
grep -v "github" .gitmodules > .gitmodules.tmp || true
|
grep -v "github" .gitmodules > .gitmodules.tmp || true
|
||||||
mv .gitmodules.tmp .gitmodules
|
mv .gitmodules.tmp .gitmodules
|
||||||
# Initialize all submodules
|
# Initialize only required submodules
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive botlib botserver
|
||||||
|
|
||||||
- name: Build
|
- name: Build BotServer Only
|
||||||
run: |
|
run: |
|
||||||
echo "=== Build ==="
|
echo "=== Build BotServer ==="
|
||||||
cd /opt/gbo/work/botserver
|
cd /opt/gbo/work/botserver
|
||||||
cargo build -p botserver
|
cargo build -p botserver
|
||||||
cargo build -p botui
|
|
||||||
cargo build -p botlib
|
|
||||||
ls -lh target/debug/botserver
|
ls -lh target/debug/botserver
|
||||||
ls -lh target/debug/botui
|
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue