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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user