| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528 |
- name: Kernel Build Process
- permissions:
- contents: write
- actions: write
- on:
- workflow_call:
- inputs:
- kernel_version:
- required: true
- type: string
- variant:
- required: false
- type: string
- feature_set:
- required: true
- type: string
- use_repo:
- required: false
- type: boolean
- jobs:
- build-gki:
- name: "${{ inputs.kernel_version }} (${{ inputs.variant }})"
- runs-on: ubuntu-latest
- timeout-minutes: 60
- steps:
- - name: Checkout Repository
- uses: actions/checkout@v5
- - name: Parse kernel version
- id: parse
- uses: ./.github/actions/parse-kernel-version
- with:
- kernel_version: ${{ inputs.kernel_version }}
- - name: Free Disk Space
- if: true
- uses: endersonmenezes/free-disk-space@v3 # Use @main for latest, @v3 for stable
- with:
- remove_android: true
- remove_dotnet: true
- remove_haskell: true
- remove_tool_cache: true
- remove_packages: "azure-cli google-cloud-cli microsoft-edge-stable google-chrome-stable firefox postgresql* temurin-* *llvm* mysql* dotnet-sdk-*"
- remove_packages_one_command: true
- remove_folders: "/usr/share/swift /usr/share/miniconda /usr/share/az* /usr/local/lib/node_modules /usr/local/share/chromium /usr/local/share/powershell /usr/local/julia /usr/local/aws-cli /usr/local/aws-sam-cli /usr/share/gradle"
- rm_cmd: "rmz" # Use 'rmz' for faster deletion (default: 'rm')
- rmz_version: "3.1.1" # Required when rm_cmd is 'rmz'
- testing: false
- - name: Setup more Swap (for LTO)
- uses: thejerrybao/setup-swap-space@v1 # or pierotofy/set-swap-space
- with:
- swap-size-gb: 10 # 10-24 GB is common for heavy LTO
- # swap-space-path: /mnt/swapfile # optional
- - name: Setup Build Environment
- uses: ./.github/actions/setup-build-environment
- env:
- BOOT_SIGN_KEY: ${{ secrets.BOOT_SIGN_KEY }}
-
- - name: Download Kernel Repository
- uses: ./.github/actions/download-kernel
- with:
- android_version: ${{ steps.parse.outputs.android_version }}
- kernel_version: ${{ steps.parse.outputs.kernel_version }}
- os_patch_level: ${{ steps.parse.outputs.os_patch_level }}
- use_repo: ${{ inputs.use_repo }}
- - name: Extract Sublevel and Set File Name
- id: extract
- uses: ./.github/actions/extract-sublevel-file-name
- with:
- variant: ${{ inputs.variant }}
- - name: Kernel Fixes
- uses: ./.github/actions/kernel-fixes
- with:
- android_version: ${{ steps.parse.outputs.android_version }}
- kernel_version: ${{ steps.parse.outputs.kernel_version }}
- sublevel: ${{ steps.extract.outputs.sublevel }}
- os_patch_level: ${{ steps.parse.outputs.os_patch_level }}
- - name: Setup KernelSU-Next
- if: contains(inputs.feature_set, 'KSUN') || inputs.feature_set == 'FULL'
- uses: ./.github/actions/kernelsu
- - name: SUSFS
- if: contains(inputs.feature_set, 'SUSFS') || inputs.feature_set == 'FULL'
- uses: ./.github/actions/susfs
- with:
- android_version: ${{ steps.parse.outputs.android_version }}
- kernel_version: ${{ steps.parse.outputs.kernel_version }}
- os_patch_level: ${{ steps.parse.outputs.os_patch_level }}
- sublevel: ${{ steps.extract.outputs.sublevel }}
- - name: Baseband Guard
- if: contains(inputs.feature_set, 'BBG') || inputs.feature_set == 'FULL'
- uses: ./.github/actions/bbg
- - name: Setup Networking
- if: contains(inputs.feature_set, 'NET') || inputs.feature_set == 'FULL'
- uses: ./.github/actions/networking
- with:
- kernel_version: ${{ steps.parse.outputs.kernel_version }}
- android_version: ${{ steps.parse.outputs.android_version }}
- - name: DroidSpaces-OSS Patches
- if: contains(inputs.feature_set, 'DS') || inputs.feature_set == 'FULL'
- uses: ./.github/actions/droidspaces
- with:
- kernel_version: ${{ steps.parse.outputs.kernel_version }}
- - name: Setup Misc Configs
- uses: ./.github/actions/misc
- with:
- kernel_version: ${{ steps.parse.outputs.kernel_version }}
- android_version: ${{ steps.parse.outputs.android_version }}
- - name: Apply Module Check Bypass
- if: ${{ inputs.variant == 'Bypass' }}
- uses: ./.github/actions/module-check-bypass
- with:
- kernel_version: ${{ steps.parse.outputs.kernel_version }}
- - name: Apply Device-Specific Patches
- uses: ./.github/actions/apply-device-patches
- with:
- kernel_version: ${{ steps.parse.outputs.kernel_version }}
- - name: Apply ABI Compare Bypass
- if: false
- working-directory: ${{ github.workspace }}/kernel
- run: |
- # ABI compare bypass per kernel/android version
- # Edit each block as needed per version
- if [[ "$ANDROID_VERSION" == "android12" && "$KERNEL_VERSION" == "5.10" ]]; then
- sed -i 's/^\s*exit 1$/ echo "Who Cares? Bypassing Now!"/' build/abi/compare_to_symbol_list
- elif [[ "$ANDROID_VERSION" == "android13" && "$KERNEL_VERSION" == "5.10" ]]; then
- sed -i 's/^\s*exit 1$/ echo "Who Cares? Bypassing Now!"/' build/kernel/abi/compare_to_symbol_list
- elif [[ "$ANDROID_VERSION" == "android13" && "$KERNEL_VERSION" == "5.15" ]]; then
- sed -i 's/^\s*exit 1$/ echo "Who Cares? Bypassing Now!"/' build/kernel/abi/compare_to_symbol_list
- elif [[ "$ANDROID_VERSION" == "android14" && "$KERNEL_VERSION" == "5.15" ]]; then
- perl -i -pe 's/^(\s*)return 1$/$1print("Who Cares? Bypassing Now!")\n$1return 0/g if /if missing_symbols:/../return 1/' build/kernel/abi/check_buildtime_symbol_protection.py
- elif [[ "$ANDROID_VERSION" == "android14" && "$KERNEL_VERSION" == "6.1" ]]; then
- perl -i -pe 's/^(\s*)return 1$/$1print("Who Cares? Bypassing Now!")\n$1return 0/g if /if missing_symbols:/../return 1/' build/kernel/abi/check_buildtime_symbol_protection.py
- elif [[ "$ANDROID_VERSION" == "android15" && "$KERNEL_VERSION" == "6.6" ]]; then
- perl -i -pe 's/^(\s*)return 1$/$1print("Who Cares? Bypassing Now!")\n$1return 0/g if /if missing_symbols:/../return 1/' build/kernel/abi/check_buildtime_symbol_protection.py
- fi
- - name: Apply Kernel Branding
- uses: ./.github/actions/apply-kernel-branding
- with:
- variant: ${{ inputs.variant }}
- kernel_version: ${{ steps.parse.outputs.kernel_version }}
- android_version: ${{ steps.parse.outputs.android_version }}
- sublevel: ${{ steps.extract.outputs.sublevel }}
- - name: Remove Protected Exports
- uses: ./.github/actions/remove-protected-exports
- - name: Clean Kernel Flags
- uses: ./.github/actions/clean-kernel-flags
- - name: Scan and collect patch rejects
- id: scan
- if: ${{ always() && inputs.variant == 'Normal' }}
- uses: ./.github/actions/scan-patch-rejects
-
- - name: Upload Rejects
- if: ${{ always() && inputs.variant == 'Normal' }}
- uses: actions/upload-artifact@v7
- with:
- name: ${{ steps.extract.outputs.file_name }}-Rejects
- path: patch-rejects/
- if-no-files-found: ignore
- compression-level: 9
- - name: Restore build caches (ccache)
- id: restore-ccache
- uses: ./.github/actions/restore-cache
- with:
- cache_path: /home/runner/.ccache
- cache_key: buildcache-${{ inputs.kernel_version }}
- cache_bucket: "ccache-cache"
- compression_level: 9
- restore_keys: |
- buildcache-
- - name: Check ccache hit
- run: |
- if [ "${{ steps.restore-ccache.outputs.cache-hit }}" = "true" ]; then
- echo "✅ ccache HIT - Key: ${{ steps.restore-ccache.outputs.cache-key }} - Size: ${{ steps.restore-ccache.outputs.cache-size }}"
- else
- echo "❌ ccache MISS - Fresh build"
- fi
-
- - name: Restore build caches (bazel)
- id: restore-bazel-cache
- uses: ./.github/actions/restore-cache
- with:
- cache_path: /home/runner/.cache/bazel
- cache_key: buildcache-${{ inputs.kernel_version }}
- cache_bucket: "bazel-cache"
- compression_level: 9
- restore_keys: |
- buildcache-
-
- - name: Check bazel cache hit
- run: |
- if [ "${{ steps.restore-bazel-cache.outputs.cache-hit }}" = "true" ]; then
- echo "✅ bazel cache HIT - Key: ${{ steps.restore-bazel-cache.outputs.cache-key }} - Size: ${{ steps.restore-bazel-cache.outputs.cache-size }}"
- else
- echo "❌ bazel cache MISS - Fresh build"
- fi
- - name: Restore build caches (LTO/ld_cache)
- id: restore-ldcache
- uses: ./.github/actions/restore-cache
- with:
- cache_path: /home/runner/.ld_cache
- cache_key: buildcache-${{ inputs.kernel_version }}
- cache_bucket: "lto-cache"
- compression_level: 9
- restore_keys: |
- buildcache-
- - name: Check ld_cache hit
- run: |
- if [ "${{ steps.restore-ldcache.outputs.cache-hit }}" = "true" ]; then
- echo "✅ ld_cache HIT - Key: ${{ steps.restore-ldcache.outputs.cache-key }} - Size: ${{ steps.restore-ldcache.outputs.cache-size }}"
- else
- echo "❌ ld_cache MISS - Fresh build"
- fi
- - name: Pre-build cache stats
- id: pre-cache-stats
- run: |
- set -euo pipefail
- stats=$(ccache -s || true)
- pre_hits=$(echo "$stats" | awk '/cache hit/ {h+=$NF} END{print (h+0)}')
- pre_misses=$(echo "$stats" | awk '/cache miss/ {m+=$NF} END{print (m+0)}')
- echo "pre_hits=$pre_hits" >> $GITHUB_OUTPUT
- echo "pre_misses=$pre_misses" >> $GITHUB_OUTPUT
- pre_ld_size=$(du -sh "/home/runner/.ld_cache" 2>/dev/null | awk '{print $1}' || echo "0B")
- pre_ld_files=$(find "/home/runner/.ld_cache" -type f 2>/dev/null | wc -l || true)
- echo "pre_ld_size=$pre_ld_size" >> $GITHUB_OUTPUT
- echo "pre_ld_files=$pre_ld_files" >> $GITHUB_OUTPUT
- - name: Setup ccache for Android kernel
- shell: bash
- working-directory: ${{ github.workspace }}
- run: |
- set -Eeuo pipefail
- CCACHE_BIN="/usr/bin/ccache"
- CCACHE_URL="https://github.com/WildKernels/kernel_patches/raw/refs/heads/main/ccache/ccache-x86-64"
- CCACHE_LINK_DIR="/usr/lib/ccache"
- CCACHE_DIR="${HOME}/.ccache"
- CCACHE_MAX_SIZE="12G"
- echo "== Install ccache =="
- if ! sudo test -x "${CCACHE_BIN}"; then
- curl -LfsS \
- --retry 5 \
- --retry-delay 5 \
- --retry-all-errors \
- --connect-timeout 30 \
- -H "User-Agent: Mozilla/5.0" \
- "${CCACHE_URL}" \
- -o ./ccache
- sudo install -m 0755 ./ccache "${CCACHE_BIN}"
- rm -f ./ccache
- fi
- echo "== Create clang symlinks =="
- sudo mkdir -p "${CCACHE_LINK_DIR}"
- for compiler in clang clang++; do
- sudo ln -sf "${CCACHE_BIN}" "${CCACHE_LINK_DIR}/${compiler}"
- done
- echo "== Export env =="
- {
- echo "CCACHE_DIR=${CCACHE_DIR}"
- echo "CCACHE_EXEC=${CCACHE_BIN}"
- echo "CCACHE_BASEDIR=${GITHUB_WORKSPACE}"
- echo "CCACHE_COMPRESS=true"
- echo "CCACHE_COMPRESSLEVEL=6"
- echo "USE_CCACHE=1"
- } >> "${GITHUB_ENV}"
- mkdir -p "${CCACHE_DIR}"
- echo "== Configure ccache =="
- "${CCACHE_BIN}" --set-config=cache_dir="${CCACHE_DIR}"
- "${CCACHE_BIN}" --set-config=base_dir="${GITHUB_WORKSPACE}"
- "${CCACHE_BIN}" --set-config=compression=true
- "${CCACHE_BIN}" --set-config=compression_level=6
- "${CCACHE_BIN}" --max-size="${CCACHE_MAX_SIZE}"
- echo "== Show ccache config =="
- "${CCACHE_BIN}" --show-config || true
- "${CCACHE_BIN}" --zero-stats || true
- "${CCACHE_BIN}" --show-stats || true
-
- - name: 'Setup ccache and Build Environment'
- shell: bash
- if: false
- working-directory: ${{ github.workspace }}
- run: |
- set -euo pipefail
-
- # Download and install ccache
- #echo "Installing ccache..."
- #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 || { echo "❌ Failed to download ccache"; exit 1; }
- #sudo cp -f ./ccache /usr/bin/ccache || { echo "❌ Failed to install ccache"; exit 1; }
- #sudo chmod +x /usr/bin/ccache
- #rm -f ./ccache
-
- # Verify ccache
- if ! /usr/bin/ccache --version > /dev/null 2>&1; then
- echo "❌ ccache installation failed or binary is corrupted"
- exit 1
- fi
- echo "✅ ccache binary verified: $(/usr/bin/ccache --version | head -1)"
-
- # Setup cache directories
- #export CCACHE_DIR="/home/runner/.ccache"
- #echo "CCACHE_DIR=$CCACHE_DIR" >> $GITHUB_ENV
- #export LDCACHE_DIR="/home/runner/.ld_cache"
- #echo "LDCACHE_DIR=$LDCACHE_DIR" >> $GITHUB_ENV
- #mkdir -p "$CCACHE_DIR" "$LDCACHE_DIR"
-
- # Create LD wrapper for thin-LTO caching
- #cat > "$GITHUB_WORKSPACE/kernel/common/ld-wrapper" << 'EOF'
- #!/bin/bash
- #ld.lld "$@" --thinlto-cache-dir="$LDCACHE_DIR" --thinlto-jobs="$(nproc --all)"
- #EOF
- #chmod +x "$GITHUB_WORKSPACE/kernel/common/ld-wrapper"
- # Setup ccache compiler wrappers in PATH (masquerade method)
- # This intercepts compiler invocations regardless of how the build system calls them
- #mkdir -p "$GITHUB_WORKSPACE/ccache-bin"
- #cp /usr/bin/ccache "$GITHUB_WORKSPACE/ccache-bin/clang"
- #cp /usr/bin/ccache "$GITHUB_WORKSPACE/ccache-bin/clang++"
- #cp /usr/bin/ccache "$GITHUB_WORKSPACE/ccache-bin/gcc"
- #cp /usr/bin/ccache "$GITHUB_WORKSPACE/ccache-bin/g++"
- #cp /usr/bin/ccache "$GITHUB_WORKSPACE/ccache-bin/ld.lld"
- #chmod +x "$GITHUB_WORKSPACE/ccache-bin"/*
-
- # Export environment variables for subsequent steps
- #echo "PATH=$GITHUB_WORKSPACE/ccache-bin:$PATH" >> $GITHUB_ENV
-
- #export CC="/usr/bin/ccache clang"
- #echo "CC=$CC" >> $GITHUB_ENV
- #export CXX="/usr/bin/ccache clang++"
- #echo "CXX=$CXX" >> $GITHUB_ENV
- #export HOSTCC="/usr/bin/ccache clang"
- #echo "HOSTCC=$HOSTCC" >> $GITHUB_ENV
- #export HOSTCXX="/usr/bin/ccache clang++"
- #echo "HOSTCXX=$HOSTCXX" >> $GITHUB_ENV
- #export LD="$GITHUB_WORKSPACE/kernel/common/ld-wrapper"
- #echo "LD=$LD" >> $GITHUB_ENV
- #export HOSTLD="$GITHUB_WORKSPACE/kernel/common/ld-wrapper"
- #echo "HOSTLD=$HOSTLD" >> $GITHUB_ENV
- #echo "CLANG_PREBUILT_BIN=$GITHUB_WORKSPACE/ccache-bin" >> $GITHUB_ENV
- export CCACHE_MAXSIZE="12G"
- echo CCACHE_MAXSIZE="$CCACHE_MAXSIZE" >> $GITHUB_ENV
- export CCACHE_COMPILERCHECK="%compiler% -dumpmachine; %compiler% -dumpversion"
- echo CCACHE_COMPILERCHECK="$CCACHE_COMPILERCHECK" >> $GITHUB_ENV
- #export CCACHE_BASEDIR="${GITHUB_WORKSPACE}"
- #echo CCACHE_BASEDIR="${GITHUB_WORKSPACE}" >> $GITHUB_ENV
- export CCACHE_NOHASHDIR="true"
- echo CCACHE_NOHASHDIR="true" >> $GITHUB_ENV
- #export CCACHE_IGNOREOPTIONS="--sysroot*"
- #echo CCACHE_IGNOREOPTIONS="--sysroot*" >> $GITHUB_ENV
- #export CCACHE_COMPRESSION="true"
- #echo CCACHE_COMPRESSION="true" >> $GITHUB_ENV
- #export CCACHE_COMPRESSLEVEL="3"
- #echo CCACHE_COMPRESSION_LEVEL="3" >> $GITHUB_ENV
- #export CCACHE_DIRECT="true"
- #echo CCACHE_DIRECT="true" >> $GITHUB_ENV
- #export CCACHE_FILE_CLONE="true"
- #echo CCACHE_FILE_CLONE="true" >> $GITHUB_ENV
- #export CCACHE_INODE_CACHE="true"
- #echo CCACHE_INODE_CACHE="true" >> $GITHUB_ENV
- #export CCACHE_IS_KERNEL_COMPILING="true"
- #echo CCACHE_IS_KERNEL_COMPILING="true" >> $GITHUB_ENV
- #export CCACHE_UMASK="002"
- #echo CCACHE_UMASK="002" >> $GITHUB_ENV
- #export CCACHE_SLOPPINESS="file_macro,time_macros,include_file_mtime,include_file_ctime,pch_defines,system_headers,locale"
- #echo CCACHE_SLOPPINESS="file_macro,time_macros,include_file_mtime,include_file_ctime,pch_defines,system_headers,locale" >> $GITHUB_ENV
- export CCACHE_HARDLINK="true"
- echo CCACHE_HARDLINK="$CCACHE_HARDLINK" >> $GITHUB_ENV
- #if ccache --help 2>&1 | grep -q 'depend_mode'; then
- # export CCACHE_DEPEND=true
- # echo "CCACHE_DEPEND=true" >> "$GITHUB_ENV"
- #fi
-
- # Initialize ccache
- #ccache -M 100G
- #ccache -p
- #ccache -s
- #ccache -z
-
- echo "✅ Build environment ready"
- echo " CCACHE_DIR: $CCACHE_DIR"
- #echo " LDCACHE_DIR: $LDCACHE_DIR"
- #echo " Compiler wrappers: $GITHUB_WORKSPACE/ccache-bin"
- - name: Build Kernel
- env:
- SOURCE_DATE_EPOCH: ${{ env.SOURCE_DATE_EPOCH }}
- KBUILD_BUILD_TIMESTAMP: ${{ env.KBUILD_BUILD_TIMESTAMP }}
- uses: ./.github/actions/build-kernel
- - name: 'Report Cache Sizes'
- shell: bash
- run: |
- set -euo pipefail
- echo "📊 Cache sizes after build:"
- echo " CCACHE usage:"
- du -sh "$CCACHE_DIR" || echo " (no ccache directory)"
- #echo " LDCACHE usage:"
- #du -sh "$LDCACHE_DIR" || echo " (no ldcache directory)"
-
- echo "Perform cache eviction!"
- # 3h = 10800s using seconds to support older ccache
- ccache --evict-older-than 10800s
- - name: Post-build cache stats
- id: post-cache-stats
- run: |
- set -euo pipefail
- stats=$(ccache -s || true)
- post_hits=$(echo "$stats" | awk '/cache hit/ {h+=$NF} END{print (h+0)}')
- post_misses=$(echo "$stats" | awk '/cache miss/ {m+=$NF} END{print (m+0)}')
- pre_hits=${{ steps.pre-cache-stats.outputs.pre_hits }}
- pre_misses=${{ steps.pre-cache-stats.outputs.pre_misses }}
- delta_hits=$((post_hits - pre_hits)) || true
- delta_misses=$((post_misses - pre_misses)) || true
- delta_total=$((delta_hits + delta_misses))
- if [ "$delta_total" -gt 0 ]; then
- percent=$(( delta_hits * 100 / delta_total ))
- echo "ccache hit during build: ${percent}% (${delta_hits} hits / ${delta_total} accesses)"
- else
- echo "No compiler activity detected (no ccache accesses)."
- fi
- post_ld_size=$(du -sh "/home/runner/.ld_cache" 2>/dev/null | awk '{print $1}' || echo "0B")
- post_ld_files=$(find "/home/runner/.ld_cache" -type f 2>/dev/null | wc -l || true)
- echo "ld_cache size before: ${{ steps.pre-cache-stats.outputs.pre_ld_size }}, after: $post_ld_size"
- echo "ld_cache files before: ${{ steps.pre-cache-stats.outputs.pre_ld_files }}, after: $post_ld_files"
- - name: List cache contents
- working-directory: ${{ github.workspace }}
- run: |
- echo "=== .ccache ==="
- du -sh /home/runner/.ccache || true
- ls -l /home/runner/.ccache || true
- echo "=== .cache/bazel ==="
- du -sh /home/runner/.cache/bazel || true
- ls -l /home/runner/.cache/bazel || true
- - name: Save ccache cache
- uses: ./.github/actions/save-cache
- with:
- cache_path: /home/runner/.ccache
- cache_key: buildcache-${{ inputs.kernel_version }}
- cache_bucket: "ccache-cache"
- compression_level: 9
- github_token: ${{ secrets.GITHUB_TOKEN }}
- - name: Save bazel cache
- uses: ./.github/actions/save-cache
- with:
- cache_path: /home/runner/.cache/bazel
- cache_key: buildcache-${{ inputs.kernel_version }}
- cache_bucket: "bazel-cache"
- compression_level: 9
- github_token: ${{ secrets.GITHUB_TOKEN }}
- - name: Save LTO LD cache
- uses: ./.github/actions/save-cache
- with:
- cache_path: /home/runner/.ld_cache
- cache_key: buildcache-${{ inputs.kernel_version }}
- cache_bucket: "lto-cache"
- compression_level: 9
- github_token: ${{ secrets.GITHUB_TOKEN }}
- - name: Create Bootimgs Folder and Build Boot Images
- uses: ./.github/actions/build-boot-images
- - name: Upload Boot Image (boot.img)
- uses: actions/upload-artifact@v7
- with:
- path: ${{ github.workspace }}/boot-artifacts/${{ steps.extract.outputs.file_name }}-boot.img
- if-no-files-found: error
- archive: false
- - name: Upload Boot Image (boot-gz.img)
- uses: actions/upload-artifact@v7
- with:
- path: ${{ github.workspace }}/boot-artifacts/${{ steps.extract.outputs.file_name }}-boot-gz.img
- if-no-files-found: error
- archive: false
- - name: Upload Boot Image (boot-lz4.img)
- uses: actions/upload-artifact@v7
- with:
- path: ${{ github.workspace }}/boot-artifacts/${{ steps.extract.outputs.file_name }}-boot-lz4.img
- if-no-files-found: error
- archive: false
- - name: Prepare AnyKernel3 Zip
- uses: ./.github/actions/prepare-anykernel3
- - name: Upload Artifacts
- uses: actions/upload-artifact@v7
- with:
- name: ${{ steps.extract.outputs.file_name }}-AnyKernel3
- path: ${{ github.workspace }}/AnyKernel3/**
- if-no-files-found: ignore
- compression-level: 9
|