|
@@ -62,10 +62,6 @@ jobs:
|
|
|
rmz_version: "3.1.1" # Required when rm_cmd is 'rmz'
|
|
rmz_version: "3.1.1" # Required when rm_cmd is 'rmz'
|
|
|
testing: false
|
|
testing: false
|
|
|
|
|
|
|
|
- - name: Disk Cleanup by Deleting files
|
|
|
|
|
- if: false
|
|
|
|
|
- uses: ./.github/actions/disk-cleanup
|
|
|
|
|
-
|
|
|
|
|
- name: Setup more Swap (for LTO)
|
|
- name: Setup more Swap (for LTO)
|
|
|
uses: thejerrybao/setup-swap-space@v1 # or pierotofy/set-swap-space
|
|
uses: thejerrybao/setup-swap-space@v1 # or pierotofy/set-swap-space
|
|
|
with:
|
|
with:
|
|
@@ -202,12 +198,72 @@ jobs:
|
|
|
run: |
|
|
run: |
|
|
|
grep -n 'vm_flags_clear' ${{ github.workspace }}/kernel/common/mm/mmap.c || echo 'Not found'
|
|
grep -n 'vm_flags_clear' ${{ github.workspace }}/kernel/common/mm/mmap.c || echo 'Not found'
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ - name: Restore build caches (ccache, Bazel)
|
|
|
|
|
+ uses: actions/cache@v4
|
|
|
|
|
+ with:
|
|
|
|
|
+ path: |
|
|
|
|
|
+ .ccache
|
|
|
|
|
+ bazel-*
|
|
|
|
|
+ .cache/bazel
|
|
|
|
|
+ key: buildcache-${{ inputs.kernel_version }}
|
|
|
|
|
+ restore-keys: |
|
|
|
|
|
+ buildcache-
|
|
|
|
|
+
|
|
|
|
|
+ - name: ♻️ Configure ccache (bounded)
|
|
|
|
|
+ run: |
|
|
|
|
|
+ echo "::group::Configure ccache environment"
|
|
|
|
|
+ set -euo pipefail
|
|
|
|
|
+ if command -v ccache >/dev/null 2>&1; then
|
|
|
|
|
+ CACHE_DIR="${{ github.workspace }}/.ccache"
|
|
|
|
|
+ mkdir -p "$CACHE_DIR"
|
|
|
|
|
+ SETTINGS=(
|
|
|
|
|
+ "CCACHE_DIR=$CACHE_DIR"
|
|
|
|
|
+ "CCACHE_MAXSIZE=1G"
|
|
|
|
|
+ "CCACHE_COMPILERCHECK=content"
|
|
|
|
|
+ "CCACHE_BASEDIR=${GITHUB_WORKSPACE}"
|
|
|
|
|
+ "CCACHE_NOHASHDIR=true"
|
|
|
|
|
+ "CCACHE_IGNOREOPTIONS=--sysroot*"
|
|
|
|
|
+ "CCACHE_COMPRESSION=true"
|
|
|
|
|
+ "CCACHE_COMPRESSION_LEVEL=3"
|
|
|
|
|
+ "CCACHE_DIRECT=true"
|
|
|
|
|
+ "CCACHE_FILE_CLONE=true"
|
|
|
|
|
+ "CCACHE_INODE_CACHE=true"
|
|
|
|
|
+ "CCACHE_UMASK=002"
|
|
|
|
|
+ "CCACHE_SLOPPINESS=file_macro,time_macros,include_file_mtime,include_file_ctime,pch_defines,system_headers,locale"
|
|
|
|
|
+ )
|
|
|
|
|
+ for setting in "${SETTINGS[@]}"; do
|
|
|
|
|
+ export "$setting"
|
|
|
|
|
+ echo "$setting" >> "$GITHUB_ENV"
|
|
|
|
|
+ done
|
|
|
|
|
+ if ccache --help 2>&1 | grep -q 'depend_mode'; then
|
|
|
|
|
+ export CCACHE_DEPEND=true
|
|
|
|
|
+ echo "CCACHE_DEPEND=true" >> "$GITHUB_ENV"
|
|
|
|
|
+ fi
|
|
|
|
|
+ echo "✅ ccache configured successfully"
|
|
|
|
|
+ echo "Current ccache configuration:"
|
|
|
|
|
+ ccache -p
|
|
|
|
|
+ else
|
|
|
|
|
+ echo "ccache not found, skipping configuration."
|
|
|
|
|
+ fi
|
|
|
|
|
+ echo "::endgroup::"
|
|
|
|
|
+
|
|
|
- name: Build Kernel
|
|
- name: Build Kernel
|
|
|
env:
|
|
env:
|
|
|
SOURCE_DATE_EPOCH: ${{ env.SOURCE_DATE_EPOCH }}
|
|
SOURCE_DATE_EPOCH: ${{ env.SOURCE_DATE_EPOCH }}
|
|
|
KBUILD_BUILD_TIMESTAMP: ${{ env.KBUILD_BUILD_TIMESTAMP }}
|
|
KBUILD_BUILD_TIMESTAMP: ${{ env.KBUILD_BUILD_TIMESTAMP }}
|
|
|
uses: ./.github/actions/build-kernel
|
|
uses: ./.github/actions/build-kernel
|
|
|
|
|
|
|
|
|
|
+ - name: Save build caches (ccache, Bazel)
|
|
|
|
|
+ if: always()
|
|
|
|
|
+ uses: actions/cache@v4
|
|
|
|
|
+ with:
|
|
|
|
|
+ path: |
|
|
|
|
|
+ .ccache
|
|
|
|
|
+ bazel-*
|
|
|
|
|
+ .cache/bazel
|
|
|
|
|
+ key: buildcache-${{ inputs.kernel_version }}
|
|
|
|
|
+
|
|
|
- name: Create Bootimgs Folder and Build Boot Images
|
|
- name: Create Bootimgs Folder and Build Boot Images
|
|
|
uses: ./.github/actions/build-boot-images
|
|
uses: ./.github/actions/build-boot-images
|
|
|
|
|
|