Skip to content

Commit 7105bae

Browse files
committed
Add ccache-ECS support
1 parent 882ab21 commit 7105bae

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,19 @@ jobs:
466466
echo "✅ Dependencies installed"
467467
echo "::endgroup::"
468468
469+
- name: Install ccache with ECS by cctv18
470+
run: |
471+
# Install ccache with ECS by cctv18
472+
set -euo pipefail
473+
echo "::group::Install ccache with ECS"
474+
curl -LfsS --retry 5 --retry-delay 5 --retry-all-errors --connect-timeout 30 --tcp-fastopen -H "User-Agent: Mozilla/5.0" "https://github.com/WildKernels/kernel_patches/raw/refs/heads/main/ccache/ccache-x86-64" -o ccache
475+
sudo cp -f ./ccache /usr/bin/ccache
476+
sudo chmod +x /usr/bin/ccache
477+
rm -f ./ccache
478+
479+
echo "[DEBUG] Ccache version : $(ccache --version)"
480+
echo "::endgroup::"
481+
469482
- name: ♻️ Configure ccache & LTO cache (bounded)
470483
run: |
471484
echo "::group::Configure ccache environment"
@@ -489,6 +502,7 @@ jobs:
489502
"CCACHE_DIRECT=true"
490503
"CCACHE_FILE_CLONE=true"
491504
"CCACHE_INODE_CACHE=true"
505+
"CCACHE_IS_KERNEL_COMPILING=true"
492506
"CCACHE_UMASK=002"
493507
"CCACHE_SLOPPINESS=file_macro,time_macros,include_file_mtime,include_file_ctime,pch_defines,system_headers,locale"
494508
)

0 commit comments

Comments
 (0)