From e92762f8ecaf8f7064e5a0d292d52a51cc9856a8 Mon Sep 17 00:00:00 2001 From: forbes Date: Wed, 28 Jan 2026 08:49:49 -0600 Subject: [PATCH] CI: Fix ccache directory permissions issue - Use workspace-relative ccache directory instead of /var/cache - Remove sudo commands that fail without passwordless sudo - Ccache persists in parent of workspace directory --- .gitea/workflows/build.yml | 5 ++--- .gitea/workflows/release.yml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a6b6d70fb0..852c0ae851 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -13,7 +13,7 @@ jobs: runs-on: app-builder env: - CCACHE_DIR: /var/cache/ccache/kindred-create + CCACHE_DIR: ${{ github.workspace }}/../.ccache-kindred-create CCACHE_COMPRESS: "true" CCACHE_COMPRESSLEVEL: "6" CCACHE_MAXSIZE: "4G" @@ -47,8 +47,7 @@ jobs: - name: Prepare ccache shell: bash run: | - sudo mkdir -p $CCACHE_DIR - sudo chown $(whoami):$(whoami) $CCACHE_DIR + mkdir -p $CCACHE_DIR pixi run ccache -z pixi run ccache -p diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 2481e05a50..1718ad5bf2 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -16,7 +16,7 @@ jobs: runs-on: app-builder env: - CCACHE_DIR: /var/cache/ccache/kindred-create + CCACHE_DIR: ${{ github.workspace }}/../.ccache-kindred-create CCACHE_COMPRESS: "true" CCACHE_COMPRESSLEVEL: "6" CCACHE_MAXSIZE: "4G" @@ -56,8 +56,7 @@ jobs: - name: Prepare ccache shell: bash run: | - sudo mkdir -p $CCACHE_DIR - sudo chown $(whoami):$(whoami) $CCACHE_DIR + mkdir -p $CCACHE_DIR pixi run ccache -z - name: Write version info