From 6fdf2b1fd179f854f1e32cf0ce940a2e3f0f2947 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Fri, 10 Apr 2026 08:14:53 -0300 Subject: [PATCH] ci: add sccache cache action --- .forgejo/workflows/botserver.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/botserver.yaml b/.forgejo/workflows/botserver.yaml index f6bca184..f5c395ce 100644 --- a/.forgejo/workflows/botserver.yaml +++ b/.forgejo/workflows/botserver.yaml @@ -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: |