ci: add sccache cache action
Some checks failed
BotServer CI/CD / build (push) Has been cancelled

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-10 08:14:53 -03:00
parent 6fb8063a5b
commit 6fdf2b1fd1

View file

@ -50,8 +50,15 @@ jobs:
for m in botapp botdevice bottest botui botbook botmodels botplugin bottemplates; do
grep -v "\"$m\"" Cargo.toml > /tmp/c.toml && mv /tmp/c.toml Cargo.toml
done
# Ensure target dir exists
mkdir -p target
# Ensure target dir exists (use persistent location for sccache)
mkdir -p /opt/gbo/data/botserver/target
- name: Cache sccache
uses: actions/cache@v4
with:
path: ~/.cache/sccache
key: sccache-botserver-${{ github.sha }}
restore-keys: sccache-botserver-
- name: Install system dependencies
run: |