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
This commit is contained in:
forbes
2026-01-28 08:49:49 -06:00
parent b5cdf8413d
commit e92762f8ec
2 changed files with 4 additions and 6 deletions

View File

@@ -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

View File

@@ -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