fix(ci): Fix YAML syntax errors
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
This commit is contained in:
parent
a46bee361b
commit
823a4fbddf
1 changed files with 15 additions and 18 deletions
|
|
@ -80,25 +80,22 @@ jobs:
|
||||||
ssh $SSH_ARGS system "find /tmp -name '*.log' -type f -mtime +7 -print0 2>/dev/null | xargs -0 rm -f || true"
|
ssh $SSH_ARGS system "find /tmp -name '*.log' -type f -mtime +7 -print0 2>/dev/null | xargs -0 rm -f || true"
|
||||||
|
|
||||||
- name: Build BotServer
|
- name: Build BotServer
|
||||||
working-directory: /opt/gbo/data/botserver
|
working-directory: /opt/gbo/data/botserver
|
||||||
run: |
|
run: |
|
||||||
sccache --start-server 2>/dev/null || true
|
sccache --start-server 2>/dev/null || true
|
||||||
BOTSERVER_BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
|
BOTSERVER_BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
|
||||||
BOTSERVER_COMMIT="$(git -C /opt/gbo/data/botserver/botserver rev-parse --short HEAD 2>/dev/null || echo unknown)"
|
BOTSERVER_COMMIT="$(git -C /opt/gbo/data/botserver/botserver rev-parse --short HEAD 2>/dev/null || echo unknown)"
|
||||||
export BOTSERVER_BUILD_DATE
|
export BOTSERVER_BUILD_DATE
|
||||||
export BOTSERVER_COMMIT
|
export BOTSERVER_COMMIT
|
||||||
echo "Build date: $BOTSERVER_BUILD_DATE"
|
echo "Build date: $BOTSERVER_BUILD_DATE"
|
||||||
echo "Commit: $BOTSERVER_COMMIT"
|
echo "Commit: $BOTSERVER_COMMIT"
|
||||||
cargo build -p botserver -j 8 2>&1
|
cargo build -p botserver -j 8 2>&1
|
||||||
sccache --show-stats
|
sccache --show-stats
|
||||||
ls -lh target/debug/botserver
|
ls -lh target/debug/botserver
|
||||||
|
|
||||||
- name: Save build log
|
- name: Save build log
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: ls -lh /opt/gbo/data/botserver/target/debug/botserver 2>&1 || echo "Binary not found"
|
||||||
LOGFILE="/tmp/botserver-$(date +%Y%m%d-%H%M%S).log"
|
|
||||||
echo "Build log saved at: $LOGFILE"
|
|
||||||
ls -lh /opt/gbo/data/botserver/target/debug/botserver 2>&1 || echo "Binary not found"
|
|
||||||
|
|
||||||
- name: Deploy via ssh tar gzip
|
- name: Deploy via ssh tar gzip
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -140,4 +137,4 @@ jobs:
|
||||||
|
|
||||||
- name: Save deploy log
|
- name: Save deploy log
|
||||||
if: always()
|
if: always()
|
||||||
run: cp /tmp/deploy.log /tmp/deploy-$(date +%Y%m%d-%H%M%S).log || true
|
run: echo "Deploy completed" || true
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue