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
|
runs-on: gbo
|
||||||
env:
|
env:
|
||||||
RUSTC_WRAPPER: sccache
|
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"
|
PATH: "/home/gbuser/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/sbin:/bin"
|
||||||
steps:
|
steps:
|
||||||
- name: Setup
|
- name: Setup
|
||||||
|
|
@ -35,6 +37,7 @@ jobs:
|
||||||
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
|
export RUSTC_WRAPPER=sccache
|
||||||
echo "=== sccache stats before build ==="
|
echo "=== sccache stats before build ==="
|
||||||
sccache --show-stats 2>/dev/null || echo "sccache not available"
|
sccache --show-stats 2>/dev/null || echo "sccache not available"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue