perf: remove sccache and revert to native cargo incremental builds
Some checks failed
BotServer CI / build (push) Has been cancelled
Some checks failed
BotServer CI / build (push) Has been cancelled
This commit is contained in:
parent
bacd8fbd58
commit
18323b03f0
1 changed files with 1 additions and 14 deletions
|
|
@ -15,8 +15,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: gbo
|
runs-on: gbo
|
||||||
env:
|
env:
|
||||||
RUSTC_WRAPPER: sccache
|
CARGO_INCREMENTAL: 1
|
||||||
CARGO_INCREMENTAL: 0
|
|
||||||
RUSTFLAGS: "-C link-arg=-fuse-ld=mold"
|
RUSTFLAGS: "-C link-arg=-fuse-ld=mold"
|
||||||
PATH: "/home/gbuser/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/sbin:/bin"
|
PATH: "/home/gbuser/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/sbin:/bin"
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -24,27 +23,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd /opt/gbo/work/generalbots
|
cd /opt/gbo/work/generalbots
|
||||||
git stash 2>/dev/null || true
|
git stash 2>/dev/null || true
|
||||||
OLD_REV=$(git rev-parse HEAD)
|
|
||||||
git pull --rebase || { git rebase --abort; git reset --hard origin/main; }
|
git pull --rebase || { git rebase --abort; git reset --hard origin/main; }
|
||||||
NEW_REV=$(git rev-parse HEAD)
|
|
||||||
if [ "$OLD_REV" != "$NEW_REV" ]
|
|
||||||
then
|
|
||||||
git diff --name-only -z "$OLD_REV" "$NEW_REV" | xargs -0 touch
|
|
||||||
fi
|
|
||||||
git log --oneline -1
|
git log --oneline -1
|
||||||
|
|
||||||
- name: Build BotServer and BotUI
|
- name: Build BotServer and BotUI
|
||||||
run: |
|
run: |
|
||||||
cd /opt/gbo/work/generalbots
|
cd /opt/gbo/work/generalbots
|
||||||
rustup default stable
|
rustup default stable
|
||||||
sccache --start-server || true
|
|
||||||
export RUSTC_WRAPPER=sccache
|
|
||||||
echo "=== sccache stats before build ==="
|
|
||||||
sccache --show-stats 2>/dev/null || echo "sccache not available"
|
|
||||||
CARGO_BUILD_JOBS=6 cargo build -p botserver --bin botserver
|
CARGO_BUILD_JOBS=6 cargo build -p botserver --bin botserver
|
||||||
CARGO_BUILD_JOBS=6 cargo build -p botui --bin botui --release --features embed-ui
|
CARGO_BUILD_JOBS=6 cargo build -p botui --bin botui --release --features embed-ui
|
||||||
echo "=== sccache stats after build ==="
|
|
||||||
sccache --show-stats 2>/dev/null || echo "sccache not available"
|
|
||||||
|
|
||||||
- name: Deploy to Stage
|
- name: Deploy to Stage
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue