build.yml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. name: Kernel Build Process
  2. permissions:
  3. contents: write
  4. actions: write
  5. on:
  6. workflow_call:
  7. inputs:
  8. branch:
  9. required: true
  10. type: string
  11. android_version:
  12. required: true
  13. type: string
  14. kernel_version:
  15. required: true
  16. type: string
  17. jobs:
  18. build-samsung-gki:
  19. name: "${{ inputs.branch }}-${{ inputs.kernel_version }}-${{ inputs.android_version }}"
  20. runs-on: ubuntu-latest
  21. strategy:
  22. fail-fast: false
  23. steps:
  24. - name: Check Initial Disk Space
  25. run: |
  26. echo "===== Initial Total Disk Space in GB ====="
  27. df -BG
  28. - name: Download Apache Arrow's util_free_space.sh
  29. run: |
  30. curl -L -o util_free_space.sh https://raw.githubusercontent.com/apache/arrow/main/ci/scripts/util_free_space.sh
  31. chmod +x util_free_space.sh
  32. ./util_free_space.sh
  33. - name: Check Disk Space After Cleanup
  34. run: |
  35. echo "===== Total Disk Space After Cleanup in GB ====="
  36. df -BG
  37. - name: Set CONFIG Environment Variable
  38. run: |
  39. # Set CONFIG dynamically based on inputs values
  40. CONFIG="${{ inputs.branch }}-${{ inputs.android_version }}-${{ inputs.kernel_version }}"
  41. # Set CONFIG as an environment variable for future steps
  42. echo "CONFIG=$CONFIG" >> $GITHUB_ENV
  43. - name: Clone AnyKernel3 and Other Dependencies
  44. run: |
  45. ANYKERNEL_BRANCH="gki-2.0"
  46. SUSFS_BRANCH="gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}"
  47. git clone https://github.com/WildKernels/AnyKernel3.git -b "$ANYKERNEL_BRANCH"
  48. git clone https://github.com/WildKernels/kernel_patches.git
  49. git clone https://gitlab.com/simonpunk/susfs4ksu.git -b "$SUSFS_BRANCH"
  50. cd susfs4ksu
  51. TARGET="${{ inputs.android_version }}-${{ inputs.kernel_version }}"
  52. COMMIT=""
  53. case "$TARGET" in
  54. android12-5.10) COMMIT="8a76ba240d1f7315352b49d97d854a4b166e5b47" ;;
  55. android13-5.10) COMMIT="e5c9eabfc6dcfc677d11f46ce1d5ff786de60a92" ;;
  56. android13-5.15) COMMIT="babf6be195576f09aae79650d47abf6a76e8a21b" ;;
  57. android14-5.15) COMMIT="19f339e804ba9aebd9c6d735b965e2b9396c73ae" ;;
  58. android14-6.1) COMMIT="a162e2469d0b472545e5e46457eee171c0975fb0" ;;
  59. android15-6.6) COMMIT="f450ec00bf592d080f59b01ff6f9242456c9a427" ;;
  60. esac
  61. git checkout "$COMMIT"
  62. - name: Clone Kernel Source
  63. run: |
  64. if [[ "${{ inputs.branch }}" == "SM-A546B-Oneui7" || "${{ inputs.branch }}" == "SM-A546E-Oneui7" ]]; then
  65. git clone https://github.com/WildKernels/Samsung_Kernels.git -b ${{ inputs.branch }} $CONFIG
  66. COMMON="$CONFIG"
  67. else
  68. git clone https://github.com/WildKernels/Samsung_Kernels.git -b ${{ inputs.branch }} $CONFIG
  69. COMMON="$CONFIG/kernel_platform/common"
  70. fi
  71. echo "COMMON=$COMMON" >> $GITHUB_ENV
  72. - name: Set Path Environment Variables
  73. run: |
  74. ROOT="$GITHUB_WORKSPACE"
  75. KERNEL_ROOT="$ROOT/$CONFIG"
  76. SUSFS4KSU="$ROOT/susfs4ksu"
  77. KERNEL_PATCHES="$ROOT/kernel_patches"
  78. ANYKERNEL3="$ROOT/AnyKernel3"
  79. echo "ROOT=$ROOT" >> $GITHUB_ENV
  80. echo "KERNEL_ROOT=$KERNEL_ROOT" >> $GITHUB_ENV
  81. echo "SUSFS4KSU=$SUSFS4KSU" >> $GITHUB_ENV
  82. echo "KERNEL_PATCHES=$KERNEL_PATCHES" >> $GITHUB_ENV
  83. echo "ANYKERNEL3=$ANYKERNEL3" >> $GITHUB_ENV
  84. - name: Extract all tar.xz files and delete them
  85. run: |
  86. cd "$CONFIG"
  87. find . -type f -name '*.tar.xz' -print0 | while IFS= read -r -d '' file; do
  88. echo "Extracting $file"
  89. tar -xf "$file"
  90. rm "$file"
  91. done
  92. - name: Check Directory Space Usage
  93. run: |
  94. echo "===== Total Disk Space After Kernel Download in GB ====="
  95. df -BG
  96. echo "===== Directory Space Usage in GB ====="
  97. du -BG -d 1 | sort -nr
  98. echo "===== $CONFIG Directory Space Usage in GB ====="
  99. cd "$CONFIG"
  100. du -BG -d 2 | sort -nr
  101. - name: Add KernelSU
  102. working-directory: "$COMMON"
  103. run: |
  104. curl -LSs "https://raw.githubusercontent.com/WildKernels/Wild_KSU/wild/kernel/setup.sh" | bash -s wild
  105. - name: Getting KernelSU Version
  106. working-directory: "$COMMON/Wild_KSU/kernel"
  107. run: |
  108. BASE_VERSION=10200
  109. COMMIT_COUNT=$(/usr/bin/git rev-list --count HEAD)
  110. KSU_VERSION=$(expr $COMMIT_COUNT "+" $BASE_VERSION)
  111. echo "KSUVER=$KSU_VERSION" >> $GITHUB_ENV
  112. # change KSU version in makefile, scamsung things
  113. MAKEFILE="Makefile"
  114. sed -i "s/ccflags-y += -DKSU_VERSION=[0-9]\+/ccflags-y += -DKSU_VERSION=${KSU_VERSION}/" "$MAKEFILE"
  115. echo "✅ Updated KSU version to ${KSU_VERSION} in $MAKEFILE"
  116. - name: Apply SUSFS Patches for KernelSU Variants
  117. working-directory: "$COMMON"
  118. run: |
  119. # Apply compatibility fixes
  120. SUSFS_VERSION="1.5.12"
  121. cp "$SUSFS4KSU/kernel_patches/fs/*" ./fs/
  122. cp "$SUSFS4KSU/kernel_patches/include/linux/*" ./include/linux/
  123. # Apply core SUSFS patches
  124. cp "$SUSFS4KSU/kernel_patches/50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch" ./
  125. # Apply SUSFS core patch
  126. patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
  127. # Fix SUSFS rejects
  128. if [[ "${{ inputs.branch }}" == "SM-S928B-Oneui7" || "${{ inputs.branch }}" == "SM-S928B-Oneui8" ]]; then
  129. cp "$KERNEL_PATCHES/samsung/S24U/*" ./
  130. patch -p1 < fix_namespace.patch
  131. patch -p1 < fix_base.patch
  132. elif [[ "${{ inputs.branch }}" == "SM-A366B" ]]; then
  133. cp "$KERNEL_PATCHES/samsung/${{ inputs.branch }}/*" ./
  134. patch -p1 < fix_namespace.patch
  135. patch -p1 < fix_base.patch
  136. patch -p1 < fix_taskmmu.patch
  137. elif [[ "${{ inputs.branch }}" == "SM-X916B" ]]; then
  138. cp "$KERNEL_PATCHES/samsung/${{ inputs.branch }}/*" ./
  139. patch -p1 < fix_namespace.patch
  140. patch -p1 < fix_base.patch
  141. elif [[ "${{ inputs.branch }}" == "SM-F946N" ]]; then
  142. cp "$KERNEL_PATCHES/samsung/${{ inputs.branch }}/*" ./
  143. patch -p1 < fix_namespace.patch
  144. patch -p1 < fix_base.patch
  145. elif [[ "${{ inputs.branch }}" == "SM-A546B-Oneui7" ]]; then
  146. cp "$KERNEL_PATCHES/samsung/A54/*" ./
  147. patch -p1 < fix_namespace.patch
  148. patch -p1 < fix_base.patch
  149. patch -p1 < Disable_CRC.patch
  150. fi
  151. # Apply KSU integration patches
  152. cd Wild_KSU
  153. cp "$SUSFS4KSU/kernel_patches/KernelSU/10_enable_susfs_for_ksu.patch" .
  154. patch -p1 < 10_enable_susfs_for_ksu.patch || true
  155. cp "$KERNEL_PATCHES/wild/susfs_fix_patches/v${SUSFS_VERSION}/fix_core_hook.c.patch" ./
  156. patch -p1 < fix_core_hook.c.patch
  157. cp "$KERNEL_PATCHES/wild/susfs_fix_patches/v${SUSFS_VERSION}/fix_sucompat.c.patch" ./
  158. patch -p1 < fix_sucompat.c.patch
  159. cp "$KERNEL_PATCHES/wild/susfs_fix_patches/v${SUSFS_VERSION}/fix_kernel_compat.c.patch" ./
  160. patch -p1 < fix_kernel_compat.c.patch
  161. - name: Apply Hooks Patches
  162. working-directory: "$COMMON"
  163. run: |
  164. cp "$KERNEL_PATCHES/wild/hooks/scope_min_manual_hooks_v1.4.patch" ./
  165. if [[ "${{ inputs.branch }}" == "SM-A366B" || "${{ inputs.branch }}" == "SM-A546B-Oneui7" ]]; then
  166. patch -p1 < scope_min_manual_hooks_v1.4.patch || true
  167. else
  168. patch -p1 < scope_min_manual_hooks_v1.4.patch || true
  169. patch -p1 < fix_exec.patch
  170. fi
  171. - name: Add BBG
  172. working-directory: "$COMMON"
  173. run: |
  174. echo "Adding BBG..."
  175. wget -O- https://github.com/vc-teahouse/Baseband-guard/raw/main/setup.sh | bash
  176. sed -i '/^config LSM$/,/^help$/{ /^[[:space:]]*default/ { /baseband_guard/! s/lockdown/lockdown,baseband_guard/ } }' security/Kconfig
  177. - name: Set Kernel Configuration Variables
  178. working-directory: "$COMMON"
  179. run: |
  180. echo "Initializing kernel configuration..."
  181. patch -p1 < config.patch
  182. # Remove check_defconfig
  183. sed -i 's/check_defconfig//' ./build.config.gki
  184. - name: Change Kernel Name
  185. working-directory: "$COMMON"
  186. run: |
  187. #Add Wild to Kernel Version
  188. sed -i '$s|echo "\$res"|echo "\$res-Wild"|' ./scripts/setlocalversion
  189. #Set Kernel Timestamp
  190. perl -pi -e 's{UTS_VERSION="\$\(echo \$UTS_VERSION \$CONFIG_FLAGS \$TIMESTAMP \| cut -b -\$UTS_LEN\)"}{UTS_VERSION="#1 SMP PREEMPT Sun Apr 20 04:20:00 UTC 2025"}' ./scripts/mkcompile_h
  191. if [ -f "build/build.sh" ]; then
  192. #Remove Dirty Flag
  193. sed -i 's/-dirty//' ./scripts/setlocalversion
  194. else
  195. #Remove Abi Exports and Error
  196. rm -rf ./android/abi_gki_protected_exports_*
  197. perl -pi -e 's/^\s*"protected_exports_list"\s*:\s*"android\/abi_gki_protected_exports_aarch64",\s*$//;' ./BUILD.bazel
  198. fi
  199. - name: Set file name
  200. run: |
  201. ARTIFACT_BASE="${{ inputs.branch }}-${{ inputs.kernel_version }}-${{ inputs.android_version }}"
  202. echo "ARTIFACT_BASE=$ARTIFACT_BASE" >> $GITHUB_ENV
  203. echo "FILE_NAME=$ARTIFACT_BASE" >> $GITHUB_ENV
  204. - name: Build
  205. working-directory: "$KERNEL_ROOT"
  206. run : |
  207. set -e
  208. set -x
  209. echo "Building the kernel..."
  210. if [[ "${{ inputs.branch }}" == "SM-S928B-Oneui7" || "${{ inputs.branch }}" == "SM-S928B-Oneui8" ]]; then
  211. chmod +x build_kernel_GKI.sh
  212. ./build_kernel_GKI.sh
  213. elif [[ "${{ inputs.branch }}" == "SM-X916B" || "${{ inputs.branch }}" == "SM-F946N" ]]; then
  214. chmod +x build_kernel_GKI.sh
  215. LTO=thin ./build_kernel_GKI.sh || true
  216. elif [[ "${{ inputs.branch }}" == "SM-A546B-Oneui7" || "${{ inputs.branch }}" == "SM-A546E-Oneui7" ]]; then
  217. sudo apt update
  218. sudo apt-get install -y libyaml-dev
  219. LTO=thin ./build_kernel.sh || true
  220. else
  221. #temporarily using this until i can figure out the other phones build script issues
  222. cd kernel_platform
  223. tools/bazel build --config=fast --lto=thin //common:kernel_aarch64_dist || exit 1
  224. fi
  225. - name: Prepare AnyKernel3
  226. working-directory: "$KERNEL_ROOT"
  227. run: |
  228. # Copy Image from normal build locations
  229. #if [ -f "./$CONFIG/out/${{ inputs.android_version }}-${{ inputs.kernel_version }}/dist/Image" ]; then
  230. # cp ./$CONFIG/out/${{ inputs.android_version }}-${{ inputs.kernel_version }}/dist/Image AnyKernel3/Image
  231. #elif [ -f "./$CONFIG/bazel-bin/common/kernel_aarch64/Image" ]; then
  232. # cp ./$CONFIG/bazel-bin/common/kernel_aarch64/Image AnyKernel3/Image
  233. #else
  234. # echo "Error: Image file not found in any expected location"
  235. # exit 1
  236. #fi
  237. if [[ "${{ inputs.branch }}" == "SM-S928B-Oneui7" || "${{ inputs.branch }}" == "SM-S928B-Oneui8" ]]; then
  238. cp ./kernel_platform/sec/dist/Image "$ANYKERNEL3/Image"
  239. elif [[ -f ./$CONFIG/bazel-bin/common/kernel_aarch64/Image ]]; then
  240. cp ./$CONFIG/bazel-bin/common/kernel_aarch64/Image "$ANYKERNEL3/Image"
  241. elif [[ "${{ inputs.branch }}" == "SM-X916B" || "${{ inputs.branch }}" == "SM-F946N" ]]; then
  242. cp ./out/msm-kalama-kalama-gki/dist/Image "$ANYKERNEL3/Image"
  243. elif [[ "${{ inputs.branch }}" == "SM-A546B-Oneui7" || "${{ inputs.branch }}" == "SM-A546E-Oneui7" ]]; then
  244. cp ./arch/arm64/boot/Image "$ANYKERNEL3/Image"
  245. else
  246. echo "Error: Image file not found in any expected location"
  247. exit 1
  248. fi
  249. - name: Create Bootimgs Folder and Copy Images for Android 14/15
  250. if: ${{ inputs.android_version == 'android14' || inputs.android_version == 'android15' }}
  251. run: |
  252. #mkdir bootimgs
  253. #cp ./$CONFIG/bazel-bin/common/kernel_aarch64/Image ./bootimgs
  254. #cp ./$CONFIG/bazel-bin/common/kernel_aarch64/Image.lz4 ./bootimgs
  255. #cp ./$CONFIG/bazel-bin/common/kernel_aarch64/Image ./${{ env.FILE_NAME }}-Image
  256. #cp ./$CONFIG/bazel-bin/common/kernel_aarch64/Image.lz4 ./${{ env.FILE_NAME }}-Image.lz4
  257. # Create gzip of the Image file
  258. #gzip -n -k -f -9 ./${{ env.FILE_NAME }}-Image > ./${{ env.FILE_NAME }}-Image.gz
  259. #gzip -n -k -f -9 ./bootimgs/Image > ./bootimgs/Image.gz
  260. #cp ./boot-lz4.img ../${{ env.FILE_NAME }}-boot-lz4.img
  261. - name: Upload AnyKernel3 Artifacts
  262. id: upload_ak3
  263. uses: actions/upload-artifact@v4
  264. with:
  265. name: ${{ env.FILE_NAME }}-AnyKernel3
  266. path: |
  267. ./AnyKernel3/**
  268. compression-level: 9
  269. - name: Scan and collect patch rejects
  270. if: ${{ always() }}
  271. run: |
  272. set -e
  273. CONFIG_DIR="$CONFIG"
  274. REJECTS_DIR="$GITHUB_WORKSPACE/patch-rejects"
  275. mkdir -p "$REJECTS_DIR"
  276. # Find all .rej files under the configuration directory
  277. mapfile -t REJS < <(find "$CONFIG_DIR" -type f -name '*.rej')
  278. REJ_COUNT=${#REJS[@]}
  279. echo "Found $REJ_COUNT .rej files under $CONFIG_DIR"
  280. echo "REJ_COUNT=$REJ_COUNT" >> $GITHUB_ENV
  281. if [ "$REJ_COUNT" -gt 0 ]; then
  282. for REJ in "${REJS[@]}"; do
  283. # Relative path from $CONFIG
  284. REL="${REJ#"$CONFIG_DIR"/}"
  285. DEST="$REJECTS_DIR/$REL"
  286. mkdir -p "$(dirname "$DEST")"
  287. cp "$REJ" "$DEST"
  288. # Copy the associated original file alongside the .rej
  289. ORIG="${REJ%.rej}"
  290. if [ -f "$ORIG" ]; then
  291. ORIG_DEST="$REJECTS_DIR/${REL%.rej}"
  292. mkdir -p "$(dirname "$ORIG_DEST")"
  293. cp "$ORIG" "$ORIG_DEST"
  294. fi
  295. echo "$REL" >> "$REJECTS_DIR/index.txt"
  296. done
  297. fi
  298. - name: Generate Build Summary
  299. if: ${{ always() }}
  300. run: |
  301. # Create build summary file for inclusion in Misc artifact
  302. echo "# Kernel Build Summary" > build_summary.md
  303. # Add build variant header
  304. echo "## ${{ env.FILE_NAME }}" >> build_summary.md
  305. # Add build info
  306. echo "## Build Information" >> build_summary.md
  307. echo "- **Android Version**: ${{ inputs.android_version }}" >> build_summary.md
  308. echo "- **Kernel Version**: ${{ inputs.kernel_version }}.${{ inputs.sub_level }}" >> build_summary.md
  309. echo "- **BBG**: Installed" >> build_summary.md
  310. echo "- **Bypass Mode**: ${{ matrix.apply_bypass }}" >> build_summary.md
  311. echo "" >> build_summary.md
  312. # Get Wild_KSU commit
  313. if [ -d "$CONFIG/Wild_KSU" ]; then
  314. cd "$CONFIG/Wild_KSU"
  315. WKSU_COMMIT=$(git rev-parse HEAD)
  316. WKSU_URL="https://github.com/WildKernels/Wild_KSU/commit/$WKSU_COMMIT"
  317. echo "- **Wild_KSU**: [$WKSU_COMMIT]($WKSU_URL)" >> "$GITHUB_WORKSPACE/build_summary.md"
  318. cd "$GITHUB_WORKSPACE"
  319. else
  320. echo "- **Wild_KSU**: not present" >> build_summary.md
  321. fi
  322. # Get Baseband-guard commit
  323. if [ -d "$CONFIG/Baseband-guard" ]; then
  324. cd "$CONFIG/Baseband-guard"
  325. BBG_COMMIT=$(git rev-parse HEAD)
  326. BBG_URL="https://github.com/vc-teahouse/Baseband-guard/commit/$BBG_COMMIT"
  327. echo "- **Baseband-guard**: [$BBG_COMMIT]($BBG_URL)" >> "$GITHUB_WORKSPACE/build_summary.md"
  328. cd "$GITHUB_WORKSPACE"
  329. else
  330. echo "- **Baseband-guard**: not present" >> build_summary.md
  331. fi
  332. # Get SUSFS4KSU commit
  333. if [ -d "$GITHUB_WORKSPACE/susfs4ksu" ]; then
  334. cd "$GITHUB_WORKSPACE/susfs4ksu"
  335. SUSFS_COMMIT=$(git rev-parse HEAD)
  336. SUSFS_URL="https://gitlab.com/simonpunk/susfs4ksu/-/commit/$SUSFS_COMMIT"
  337. echo "- **SUSFS4KSU (v1.5.12)**: [$SUSFS_COMMIT]($SUSFS_URL)" >> "$GITHUB_WORKSPACE/build_summary.md"
  338. cd "$GITHUB_WORKSPACE"
  339. else
  340. echo "- **SUSFS4KSU (v1.5.12)**: not present" >> build_summary.md
  341. fi
  342. echo "" >> build_summary.md
  343. # Add artifact summary with presence verification
  344. echo "## Build Artifacts" >> build_summary.md
  345. # Verify AnyKernel3 contents - check if kernel Image was actually copied (indicates successful build)
  346. if [ -d "AnyKernel3" ] && [ -f "AnyKernel3/Image" ]; then
  347. AK3_STATUS="✅"
  348. else
  349. AK3_STATUS="❌"
  350. fi
  351. echo "- **AnyKernel3**: $AK3_STATUS ${{ env.FILE_NAME }}-AnyKernel3" >> build_summary.md
  352. echo "### Misc (uploaded files)" >> build_summary.md
  353. FILES_PRESENT=0
  354. for f in "${{ env.FILE_NAME }}-Image" "${{ env.FILE_NAME }}-Image.gz" "${{ env.FILE_NAME }}-Image.lz4" "${{ env.FILE_NAME }}-boot.img" "${{ env.FILE_NAME }}-boot-gz.img" "${{ env.FILE_NAME }}-boot-lz4.img"; do
  355. if [ -f "$f" ]; then FILES_PRESENT=$((FILES_PRESENT+1)); fi
  356. done
  357. if [ "$FILES_PRESENT" -gt 0 ]; then
  358. MISC_STATUS="✅"
  359. else
  360. MISC_STATUS="❌"
  361. fi
  362. echo "- **Set**: $MISC_STATUS ${{ env.FILE_NAME }}-Misc" >> build_summary.md
  363. if [ "$MISC_STATUS" = "✅" ]; then
  364. echo " Included:" >> build_summary.md
  365. for f in "${{ env.FILE_NAME }}-Image" "${{ env.FILE_NAME }}-Image.gz" "${{ env.FILE_NAME }}-Image.lz4" "${{ env.FILE_NAME }}-boot.img" "${{ env.FILE_NAME }}-boot-gz.img" "${{ env.FILE_NAME }}-boot-lz4.img"; do
  366. if [ -f "$f" ]; then
  367. echo " - $f" >> build_summary.md
  368. fi
  369. done
  370. fi
  371. echo "### Diagnostics" >> build_summary.md
  372. echo "- **Rejected Patches**: ${{ env.FILE_NAME }}-Rejected-Patches" >> build_summary.md
  373. if [ -f patch-rejects/index.txt ]; then
  374. if [ -s patch-rejects/index.txt ]; then
  375. echo " Rejected files:" >> build_summary.md
  376. while IFS= read -r line; do
  377. echo " - $line" >> build_summary.md
  378. done < patch-rejects/index.txt
  379. else
  380. echo " Rejected file list is empty." >> build_summary.md
  381. fi
  382. else
  383. echo " No rejected patches found." >> build_summary.md
  384. fi