perf: optimize CI build with mold linker and sccache stability
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
675d88db2a
commit
bacd8fbd58
1 changed files with 3 additions and 0 deletions
|
|
@ -16,6 +16,8 @@ jobs:
|
|||
runs-on: gbo
|
||||
env:
|
||||
RUSTC_WRAPPER: sccache
|
||||
CARGO_INCREMENTAL: 0
|
||||
RUSTFLAGS: "-C link-arg=-fuse-ld=mold"
|
||||
PATH: "/home/gbuser/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/sbin:/bin"
|
||||
steps:
|
||||
- name: Setup
|
||||
|
|
@ -35,6 +37,7 @@ jobs:
|
|||
run: |
|
||||
cd /opt/gbo/work/generalbots
|
||||
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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue