build.yml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. name: Kernel Build Process
  2. permissions:
  3. contents: write
  4. actions: write
  5. on:
  6. workflow_call:
  7. inputs:
  8. kernel_version:
  9. required: true
  10. type: string
  11. variant:
  12. required: false
  13. type: string
  14. feature_set:
  15. required: true
  16. type: string
  17. use_repo:
  18. required: false
  19. type: boolean
  20. jobs:
  21. build-gki:
  22. name: "${{ inputs.kernel_version }} (${{ inputs.variant }})"
  23. runs-on: ubuntu-latest
  24. timeout-minutes: 60
  25. steps:
  26. - name: Display system disk usage
  27. run: |
  28. echo "=== Disk usage summary ==="
  29. df -h
  30. echo ""
  31. - name: Checkout Repository
  32. uses: actions/checkout@v5
  33. - name: Parse kernel version
  34. id: parse
  35. uses: ./.github/actions/parse-kernel-version
  36. with:
  37. kernel_version: ${{ inputs.kernel_version }}
  38. - name: Free Disk Space
  39. if: true
  40. uses: endersonmenezes/free-disk-space@v3 # Use @main for latest, @v3 for stable
  41. with:
  42. remove_android: true
  43. remove_dotnet: true
  44. remove_haskell: true
  45. remove_tool_cache: true
  46. #remove_packages: "azure-cli google-cloud-cli microsoft-edge-stable google-chrome-stable firefox postgresql* temurin-* *llvm* mysql* dotnet-sdk-*"
  47. #remove_packages_one_command: true
  48. 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"
  49. rm_cmd: "rmz" # Use 'rmz' for faster deletion (default: 'rm')
  50. rmz_version: "3.1.1" # Required when rm_cmd is 'rmz'
  51. testing: false
  52. - name: Display system disk usage
  53. run: |
  54. echo "=== Disk usage summary ==="
  55. df -h
  56. echo ""
  57. - name: Setup more Swap (for LTO)
  58. uses: thejerrybao/setup-swap-space@v1 # or pierotofy/set-swap-space
  59. with:
  60. swap-size-gb: 10 # 10-24 GB is common for heavy LTO
  61. # swap-space-path: /mnt/swapfile # optional
  62. - name: Display system disk usage
  63. run: |
  64. echo "=== Disk usage summary ==="
  65. df -h
  66. echo ""
  67. - name: Setup Build Environment
  68. uses: ./.github/actions/setup-build-environment
  69. env:
  70. BOOT_SIGN_KEY: ${{ secrets.BOOT_SIGN_KEY }}
  71. - name: Display system disk usage
  72. run: |
  73. echo "=== Disk usage summary ==="
  74. df -h
  75. echo ""
  76. - name: Download Kernel Repository
  77. uses: ./.github/actions/download-kernel
  78. with:
  79. android_version: ${{ steps.parse.outputs.android_version }}
  80. kernel_version: ${{ steps.parse.outputs.kernel_version }}
  81. os_patch_level: ${{ steps.parse.outputs.os_patch_level }}
  82. use_repo: ${{ inputs.use_repo }}
  83. - name: Display system disk usage
  84. run: |
  85. echo "=== Disk usage summary ==="
  86. df -h
  87. echo ""
  88. - name: Extract Sublevel and Set File Name
  89. id: extract
  90. uses: ./.github/actions/extract-sublevel-file-name
  91. with:
  92. variant: ${{ inputs.variant }}
  93. - name: Kernel Fixes
  94. uses: ./.github/actions/kernel-fixes
  95. with:
  96. android_version: ${{ steps.parse.outputs.android_version }}
  97. kernel_version: ${{ steps.parse.outputs.kernel_version }}
  98. sublevel: ${{ steps.extract.outputs.sublevel }}
  99. os_patch_level: ${{ steps.parse.outputs.os_patch_level }}
  100. - name: Setup KernelSU-Next
  101. if: contains(inputs.feature_set, 'KSUN') || inputs.feature_set == 'FULL'
  102. uses: ./.github/actions/kernelsu
  103. - name: SUSFS
  104. if: contains(inputs.feature_set, 'SUSFS') || inputs.feature_set == 'FULL'
  105. uses: ./.github/actions/susfs
  106. with:
  107. android_version: ${{ steps.parse.outputs.android_version }}
  108. kernel_version: ${{ steps.parse.outputs.kernel_version }}
  109. os_patch_level: ${{ steps.parse.outputs.os_patch_level }}
  110. sublevel: ${{ steps.extract.outputs.sublevel }}
  111. - name: Baseband Guard
  112. if: contains(inputs.feature_set, 'BBG') || inputs.feature_set == 'FULL'
  113. uses: ./.github/actions/bbg
  114. - name: Setup Networking
  115. if: contains(inputs.feature_set, 'NET') || inputs.feature_set == 'FULL'
  116. uses: ./.github/actions/networking
  117. with:
  118. kernel_version: ${{ steps.parse.outputs.kernel_version }}
  119. android_version: ${{ steps.parse.outputs.android_version }}
  120. - name: DroidSpaces-OSS Patches
  121. if: contains(inputs.feature_set, 'DS') || inputs.feature_set == 'FULL'
  122. uses: ./.github/actions/droidspaces
  123. with:
  124. kernel_version: ${{ steps.parse.outputs.kernel_version }}
  125. - name: Setup Misc Configs
  126. uses: ./.github/actions/misc
  127. with:
  128. kernel_version: ${{ steps.parse.outputs.kernel_version }}
  129. android_version: ${{ steps.parse.outputs.android_version }}
  130. - name: Apply Module Check Bypass
  131. if: ${{ inputs.variant == 'Bypass' }}
  132. uses: ./.github/actions/module-check-bypass
  133. with:
  134. kernel_version: ${{ steps.parse.outputs.kernel_version }}
  135. - name: Apply Device-Specific Patches
  136. uses: ./.github/actions/apply-device-patches
  137. with:
  138. kernel_version: ${{ steps.parse.outputs.kernel_version }}
  139. - name: Apply ABI Compare Bypass
  140. if: false
  141. working-directory: ${{ github.workspace }}/kernel
  142. run: |
  143. # ABI compare bypass per kernel/android version
  144. # Edit each block as needed per version
  145. if [[ "$ANDROID_VERSION" == "android12" && "$KERNEL_VERSION" == "5.10" ]]; then
  146. sed -i 's/^\s*exit 1$/ echo "Who Cares? Bypassing Now!"/' build/abi/compare_to_symbol_list
  147. elif [[ "$ANDROID_VERSION" == "android13" && "$KERNEL_VERSION" == "5.10" ]]; then
  148. sed -i 's/^\s*exit 1$/ echo "Who Cares? Bypassing Now!"/' build/kernel/abi/compare_to_symbol_list
  149. elif [[ "$ANDROID_VERSION" == "android13" && "$KERNEL_VERSION" == "5.15" ]]; then
  150. sed -i 's/^\s*exit 1$/ echo "Who Cares? Bypassing Now!"/' build/kernel/abi/compare_to_symbol_list
  151. elif [[ "$ANDROID_VERSION" == "android14" && "$KERNEL_VERSION" == "5.15" ]]; then
  152. 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
  153. elif [[ "$ANDROID_VERSION" == "android14" && "$KERNEL_VERSION" == "6.1" ]]; then
  154. 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
  155. elif [[ "$ANDROID_VERSION" == "android15" && "$KERNEL_VERSION" == "6.6" ]]; then
  156. 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
  157. fi
  158. - name: Apply Kernel Branding
  159. uses: ./.github/actions/apply-kernel-branding
  160. with:
  161. variant: ${{ inputs.variant }}
  162. kernel_version: ${{ steps.parse.outputs.kernel_version }}
  163. android_version: ${{ steps.parse.outputs.android_version }}
  164. sublevel: ${{ steps.extract.outputs.sublevel }}
  165. - name: Remove Protected Exports
  166. uses: ./.github/actions/remove-protected-exports
  167. - name: Clean Kernel Flags
  168. uses: ./.github/actions/clean-kernel-flags
  169. - name: Scan and collect patch rejects
  170. id: scan
  171. if: ${{ always() && inputs.variant == 'Normal' }}
  172. uses: ./.github/actions/scan-patch-rejects
  173. - name: Upload Rejects
  174. if: ${{ always() && inputs.variant == 'Normal' }}
  175. uses: actions/upload-artifact@v7
  176. with:
  177. name: ${{ steps.extract.outputs.file_name }}-Rejects
  178. path: patch-rejects/
  179. if-no-files-found: ignore
  180. compression-level: 9
  181. - name: Display system disk usage
  182. run: |
  183. echo "=== Disk usage summary ==="
  184. df -h
  185. echo ""
  186. - name: 'Setup ccache and Build Environment'
  187. shell: bash
  188. if: true
  189. working-directory: ${{ github.workspace }}/kernel
  190. run: |
  191. set -euo pipefail
  192. if [ -f "build/build.sh" ]; then
  193. # Download and install ccache
  194. echo "Installing ccache..."
  195. 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; }
  196. sudo cp -f ./ccache /usr/bin/ccache || { echo "❌ Failed to install ccache"; exit 1; }
  197. sudo chmod +x /usr/bin/ccache
  198. rm -f ./ccache
  199. # Verify ccache
  200. if ! /usr/bin/ccache --version > /dev/null 2>&1; then
  201. echo "❌ ccache installation failed or binary is corrupted"
  202. exit 1
  203. fi
  204. echo "✅ ccache binary verified: $(/usr/bin/ccache --version | head -1)"
  205. # Setup cache directories
  206. export CCACHE_DIR="/home/runner/.ccache"
  207. echo "CCACHE_DIR=$CCACHE_DIR" >> $GITHUB_ENV
  208. export LDCACHE_DIR="/home/runner/.ld_cache"
  209. echo "LDCACHE_DIR=$LDCACHE_DIR" >> $GITHUB_ENV
  210. mkdir -p "$CCACHE_DIR" "$LDCACHE_DIR"
  211. # Create LD wrapper for thin-LTO caching
  212. cat > "$GITHUB_WORKSPACE/kernel/common/ld-wrapper" << 'EOF'
  213. #!/bin/bash
  214. ld.lld "$@" --thinlto-cache-dir="$LDCACHE_DIR" --thinlto-jobs="$(nproc --all)"
  215. EOF
  216. chmod +x "$GITHUB_WORKSPACE/kernel/common/ld-wrapper"
  217. echo "CC=/usr/bin/ccache clang" >> "$GITHUB_ENV"
  218. echo "CXX=/usr/bin/ccache clang++" >> "$GITHUB_ENV"
  219. echo "HOSTCC=/usr/bin/ccache clang" >> "$GITHUB_ENV"
  220. echo "HOSTCXX=/usr/bin/ccache clang++" >> "$GITHUB_ENV"
  221. echo "LD=$GITHUB_WORKSPACE/kernel/common/ld-wrapper" >> "$GITHUB_ENV"
  222. echo "HOSTLD=$GITHUB_WORKSPACE/kernel/common/ld-wrapper" >> "$GITHUB_ENV"
  223. export CCACHE_MAXSIZE="12G"
  224. echo CCACHE_MAXSIZE="$CCACHE_MAXSIZE" >> $GITHUB_ENV
  225. export CCACHE_COMPILERCHECK="%compiler% -dumpmachine; %compiler% -dumpversion"
  226. echo CCACHE_COMPILERCHECK="$CCACHE_COMPILERCHECK" >> $GITHUB_ENV
  227. export CCACHE_BASEDIR="${GITHUB_WORKSPACE}"
  228. echo CCACHE_BASEDIR="${GITHUB_WORKSPACE}" >> $GITHUB_ENV
  229. export CCACHE_NOHASHDIR="true"
  230. echo CCACHE_NOHASHDIR="true" >> $GITHUB_ENV
  231. export CCACHE_IGNOREOPTIONS="--sysroot*"
  232. echo CCACHE_IGNOREOPTIONS="--sysroot*" >> $GITHUB_ENV
  233. export CCACHE_COMPRESSION="true"
  234. echo CCACHE_COMPRESSION="true" >> $GITHUB_ENV
  235. export CCACHE_COMPRESSLEVEL="9"
  236. echo CCACHE_COMPRESSION_LEVEL="9" >> $GITHUB_ENV
  237. # Temporarily disabled for cache hit testing
  238. # export CCACHE_DIRECT="true"
  239. # echo CCACHE_DIRECT="true" >> "$GITHUB_ENV"
  240. # Temporarily disabled for cache hit testing
  241. # export CCACHE_FILE_CLONE="true"
  242. # echo CCACHE_FILE_CLONE="true" >> "$GITHUB_ENV"
  243. # Temporarily disabled for cache hit testing
  244. # export CCACHE_INODE_CACHE="true"
  245. # echo CCACHE_INODE_CACHE="true" >> "$GITHUB_ENV"
  246. export CCACHE_IS_KERNEL_COMPILING="true"
  247. echo CCACHE_IS_KERNEL_COMPILING="true" >> $GITHUB_ENV
  248. export CCACHE_UMASK="002"
  249. echo CCACHE_UMASK="002" >> $GITHUB_ENV
  250. export CCACHE_SLOPPINESS="file_macro,time_macros,include_file_mtime,include_file_ctime,pch_defines,system_headers,locale"
  251. echo CCACHE_SLOPPINESS="file_macro,time_macros,include_file_mtime,include_file_ctime,pch_defines,system_headers,locale" >> $GITHUB_ENV
  252. #export CCACHE_HARDLINK="true"
  253. #echo CCACHE_HARDLINK="$CCACHE_HARDLINK" >> $GITHUB_ENV
  254. if ccache --help 2>&1 | grep -q 'depend_mode'; then
  255. export CCACHE_DEPEND=true
  256. echo "CCACHE_DEPEND=true" >> "$GITHUB_ENV"
  257. fi
  258. # Initialize ccache
  259. #ccache -M 100G
  260. ccache -p
  261. ccache -s
  262. ccache -z
  263. echo "✅ Build environment ready"
  264. echo " CCACHE_DIR: $CCACHE_DIR"
  265. echo " LDCACHE_DIR: $LDCACHE_DIR"
  266. else
  267. export BAZEL_DISK_CACHE_DIR="/home/runner/.bazel_disk_cache"
  268. echo "BAZEL_DISK_CACHE_DIR=$BAZEL_DISK_CACHE_DIR" >> $GITHUB_ENV
  269. mkdir -p "$BAZEL_DISK_CACHE_DIR"
  270. echo "✅ Build environment ready"
  271. echo "BAZEL_DISK_CACHE_DIR: $BAZEL_DISK_CACHE_DIR"
  272. fi
  273. - name: Restore build caches (ccache)
  274. id: restore-ccache
  275. uses: ./.github/actions/restore-cache
  276. with:
  277. cache_path: /home/runner/.ccache
  278. cache_key: buildcache-${{ inputs.kernel_version }}
  279. cache_bucket: "ccache-cache"
  280. compression_level: 9
  281. restore_keys: |
  282. buildcache-
  283. - name: Restore build caches (bazel)
  284. id: restore-bazel-cache
  285. uses: ./.github/actions/restore-cache
  286. with:
  287. cache_path: /home/runner/.cache/bazel
  288. cache_key: buildcache-${{ inputs.kernel_version }}
  289. cache_bucket: "bazel-cache"
  290. compression_level: 9
  291. restore_keys: |
  292. buildcache-
  293. - name: Restore build caches (bazel disk cache)
  294. id: restore-bazel-disk-cache
  295. uses: ./.github/actions/restore-cache
  296. with:
  297. cache_path: /home/runner/.bazel_disk_cache
  298. cache_key: buildcache-${{ inputs.kernel_version }}
  299. cache_bucket: "bazel-disk-cache"
  300. compression_level: 9
  301. restore_keys: |
  302. buildcache-
  303. - name: Restore build caches (LTO/ld_cache)
  304. id: restore-ldcache
  305. uses: ./.github/actions/restore-cache
  306. with:
  307. cache_path: /home/runner/.ld_cache
  308. cache_key: buildcache-${{ inputs.kernel_version }}
  309. cache_bucket: "lto-cache"
  310. compression_level: 9
  311. restore_keys: |
  312. buildcache-
  313. - name: Check cache hit
  314. run: |
  315. if [ "${{ steps.restore-ccache.outputs.cache-hit }}" = "true" ]; then
  316. echo "✅ ccache HIT - Key: ${{ steps.restore-ccache.outputs.cache-key }} - Size: ${{ steps.restore-ccache.outputs.cache-size }}"
  317. else
  318. echo "❌ ccache MISS - Fresh build"
  319. fi
  320. if [ "${{ steps.restore-bazel-cache.outputs.cache-hit }}" = "true" ]; then
  321. echo "✅ bazel cache HIT - Key: ${{ steps.restore-bazel-cache.outputs.cache-key }} - Size: ${{ steps.restore-bazel-cache.outputs.cache-size }}"
  322. else
  323. echo "❌ bazel cache MISS - Fresh build"
  324. fi
  325. if [ "${{ steps.restore-ldcache.outputs.cache-hit }}" = "true" ]; then
  326. echo "✅ ld_cache HIT - Key: ${{ steps.restore-ldcache.outputs.cache-key }} - Size: ${{ steps.restore-ldcache.outputs.cache-size }}"
  327. else
  328. echo "❌ ld_cache MISS - Fresh build"
  329. fi
  330. ccache -p
  331. ccache -s
  332. ccache -z
  333. - name: List cache contents
  334. working-directory: ${{ github.workspace }}
  335. run: |
  336. echo "=== .ccache ==="
  337. du -sh /home/runner/.ccache || true
  338. ls -l /home/runner/.ccache || true
  339. echo "=== .cache/bazel ==="
  340. du -sh /home/runner/.cache/bazel || true
  341. ls -l /home/runner/.cache/bazel || true
  342. echo "=== .ld_cache ==="
  343. du -sh /home/runner/.ld_cache || true
  344. ls -l /home/runner/.ld_cache || true
  345. echo "=== .bazel_disk_cache ==="
  346. du -sh /home/runner/.bazel_disk_cache || true
  347. ls -l /home/runner/.bazel_disk_cache || true
  348. - name: Display system disk usage
  349. run: |
  350. echo "=== Disk usage summary ==="
  351. df -h
  352. echo ""
  353. - name: Build Kernel
  354. env:
  355. SOURCE_DATE_EPOCH: ${{ env.SOURCE_DATE_EPOCH }}
  356. KBUILD_BUILD_TIMESTAMP: ${{ env.KBUILD_BUILD_TIMESTAMP }}
  357. uses: ./.github/actions/build-kernel
  358. - name: Display system disk usage
  359. run: |
  360. echo "=== Disk usage summary ==="
  361. df -h
  362. echo ""
  363. - name: Post-build cache stats
  364. id: post-cache-stats
  365. run: |
  366. set -euo pipefail
  367. STATS="$(ccache -s)"
  368. CACHEABLE=$(echo "$STATS" | awk '/Cacheable calls:/ {
  369. match($0, /[0-9]+/);
  370. print substr($0, RSTART, RLENGTH)
  371. }' | head -n1)
  372. HITS=$(echo "$STATS" | awk '/^[[:space:]]*Hits:/ {
  373. match($0, /[0-9]+/);
  374. print substr($0, RSTART, RLENGTH)
  375. }' | head -n1)
  376. DIRECT=$(echo "$STATS" | awk '/Direct:/ {
  377. match($0, /[0-9]+/);
  378. print substr($0, RSTART, RLENGTH)
  379. }' | head -n1)
  380. if [ "${CACHEABLE:-0}" -gt 0 ]; then
  381. HIT_RATE=$(awk -v h="${HITS:-0}" -v c="$CACHEABLE" 'BEGIN{printf "%.1f", (h/c)*100}')
  382. DIRECT_RATE=$(awk -v d="${DIRECT:-0}" -v c="$CACHEABLE" 'BEGIN{printf "%.1f", (d/c)*100}')
  383. else
  384. HIT_RATE="0.0"
  385. DIRECT_RATE="0.0"
  386. fi
  387. echo "hit_rate=${HIT_RATE}%"
  388. echo "direct_rate=${DIRECT_RATE}%"
  389. - name: List cache contents
  390. working-directory: ${{ github.workspace }}
  391. run: |
  392. echo "=== .ccache ==="
  393. du -sh /home/runner/.ccache || true
  394. ls -l /home/runner/.ccache || true
  395. echo "=== .cache/bazel ==="
  396. du -sh /home/runner/.cache/bazel || true
  397. ls -l /home/runner/.cache/bazel || true
  398. echo "=== .ld_cache ==="
  399. du -sh /home/runner/.ld_cache || true
  400. ls -l /home/runner/.ld_cache || true
  401. echo "=== .bazel_disk_cache ==="
  402. du -sh /home/runner/.bazel_disk_cache || true
  403. ls -l /home/runner/.bazel_disk_cache || true
  404. - name: Save ccache cache
  405. uses: ./.github/actions/save-cache
  406. with:
  407. cache_path: /home/runner/.ccache
  408. cache_key: buildcache-${{ inputs.kernel_version }}
  409. cache_bucket: "ccache-cache"
  410. compression_level: 9
  411. github_token: ${{ secrets.GITHUB_TOKEN }}
  412. - name: Save bazel cache
  413. uses: ./.github/actions/save-cache
  414. with:
  415. cache_path: /home/runner/.cache/bazel
  416. cache_key: buildcache-${{ inputs.kernel_version }}
  417. cache_bucket: "bazel-cache"
  418. compression_level: 9
  419. github_token: ${{ secrets.GITHUB_TOKEN }}
  420. - name: Save bazel disk cache
  421. uses: ./.github/actions/save-cache
  422. with:
  423. cache_path: /home/runner/.bazel_disk_cache
  424. cache_key: buildcache-${{ inputs.kernel_version }}
  425. cache_bucket: "bazel-disk-cache"
  426. compression_level: 9
  427. github_token: ${{ secrets.GITHUB_TOKEN }}
  428. - name: Save LTO LD cache
  429. uses: ./.github/actions/save-cache
  430. with:
  431. cache_path: /home/runner/.ld_cache
  432. cache_key: buildcache-${{ inputs.kernel_version }}
  433. cache_bucket: "lto-cache"
  434. compression_level: 9
  435. github_token: ${{ secrets.GITHUB_TOKEN }}
  436. - name: Create Bootimgs Folder and Build Boot Images
  437. uses: ./.github/actions/build-boot-images
  438. - name: Upload Boot Image (boot.img)
  439. uses: actions/upload-artifact@v7
  440. with:
  441. path: ${{ github.workspace }}/boot-artifacts/${{ steps.extract.outputs.file_name }}-boot.img
  442. if-no-files-found: error
  443. archive: false
  444. - name: Upload Boot Image (boot-gz.img)
  445. uses: actions/upload-artifact@v7
  446. with:
  447. path: ${{ github.workspace }}/boot-artifacts/${{ steps.extract.outputs.file_name }}-boot-gz.img
  448. if-no-files-found: error
  449. archive: false
  450. - name: Upload Boot Image (boot-lz4.img)
  451. uses: actions/upload-artifact@v7
  452. with:
  453. path: ${{ github.workspace }}/boot-artifacts/${{ steps.extract.outputs.file_name }}-boot-lz4.img
  454. if-no-files-found: error
  455. archive: false
  456. - name: Prepare AnyKernel3 Zip
  457. uses: ./.github/actions/prepare-anykernel3
  458. - name: Upload Artifacts
  459. uses: actions/upload-artifact@v7
  460. with:
  461. name: ${{ steps.extract.outputs.file_name }}-AnyKernel3
  462. path: ${{ github.workspace }}/AnyKernel3/**
  463. if-no-files-found: ignore
  464. compression-level: 9