Change ccache path to use GITHUB_WORKSPACE
Updated ccache configuration to use workspace directory.
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -72,26 +72,25 @@ jobs:
|
|||||||
- name: Cache ccache
|
- name: Cache ccache
|
||||||
uses: actions/cache@v5.0.5
|
uses: actions/cache@v5.0.5
|
||||||
with:
|
with:
|
||||||
path: $HOME/.cache/ccache
|
path: .ccache
|
||||||
key: ccache-${{ runner.os }}-devkitpro-ams-${{ hashFiles('ams_ver.txt') }}
|
key: ccache-${{ runner.os }}-devkitpro-ams-${{ hashFiles('ams_ver.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
ccache-${{ runner.os }}-devkitpro-
|
ccache-${{ runner.os }}-devkitpro-
|
||||||
|
|
||||||
- name: Configure ccache
|
- name: Configure ccache
|
||||||
run: |
|
run: |
|
||||||
export CCACHE_DIR="$HOME/.cache/ccache"
|
export CCACHE_DIR="$GITHUB_WORKSPACE/.ccache"
|
||||||
export CCACHE_BASEDIR="$GITHUB_WORKSPACE"
|
|
||||||
export CCACHE_COMPILERCHECK=content
|
export CCACHE_COMPILERCHECK=content
|
||||||
export CCACHE_NOHASHDIR=true
|
export CCACHE_NOHASHDIR=true
|
||||||
echo "CCACHE_DIR=/github/home/.cache/ccache" >> $GITHUB_ENV
|
echo "CCACHE_DIR=$GITHUB_WORKSPACE/.ccache" >> $GITHUB_ENV
|
||||||
echo "CCACHE_BASEDIR=$GITHUB_WORKSPACE" >> $GITHUB_ENV
|
echo "CCACHE_BASEDIR=$GITHUB_WORKSPACE" >> $GITHUB_ENV
|
||||||
echo "CCACHE_COMPILERCHECK=content" >> $GITHUB_ENV
|
echo "CCACHE_COMPILERCHECK=content" >> $GITHUB_ENV
|
||||||
echo "CCACHE_NOHASHDIR=true" >> $GITHUB_ENV
|
echo "CCACHE_NOHASHDIR=true" >> $GITHUB_ENV
|
||||||
ccache --set-config=max_size=10G
|
ccache --set-config=max_size=10G
|
||||||
ccache --set-config=compiler_check=content
|
ccache --set-config=compiler_check=content
|
||||||
ccache --set-config=hash_dir=false
|
ccache --set-config=hash_dir=false
|
||||||
ccache -s
|
ccache -s
|
||||||
ls -lah $HOME/.cache/ccache
|
ls -lah "$GITHUB_WORKSPACE/.ccache"
|
||||||
|
|
||||||
- name: Build Libnx
|
- name: Build Libnx
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user