Skip to content

Commit 1fe1fb5

Browse files
committed
Add ccache log support
1 parent 7105bae commit 1fe1fb5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build-kernel-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ jobs:
486486
if command -v ccache >/dev/null 2>&1; then
487487
CACHE_DIR="${{ github.workspace }}/.ccache"
488488
LDCACHE_DIR="${{ github.workspace }}/.ld_cache"
489+
CCACHE_LOG="${{ github.workspace }}/ccache.log"
489490
mkdir -p "$CACHE_DIR"
490491
mkdir -p "$LDCACHE_DIR"
491492
@@ -511,7 +512,12 @@ jobs:
511512
export "$setting"
512513
echo "$setting" >> "$GITHUB_ENV"
513514
done
514-
515+
516+
if [ "${{ inputs.debug }}" == "true" ]; then
517+
export "CCACHE_LOGFILE=$CCACHE_LOG"
518+
echo "CCACHE_LOGFILE=$CCACHE_LOG" >> "$GITHUB_ENV"
519+
fi
520+
515521
if ccache --help 2>&1 | grep -q 'depend_mode'; then
516522
export CCACHE_DEPEND=true
517523
echo "CCACHE_DEPEND=true" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)