File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 7070 echo "$(grep 'BRANCH=' kernel-6.6/build.config.common)" >> build_info.txt
7171 echo "$(grep 'KMI_GENERATION=' kernel-6.6/build.config.common)" >> build_info.txt
7272
73+ - name : Build tar
74+ run : |
75+ export version="${{ env.kernel_release }}-android15-6.6-abogki${{ env.osrc_release }}_${{ env.asb_level }}"
76+ FILE_NAME="a34x_${version}_$(date +%Y%m%d)"
77+ echo "tar_file_name=$FILE_NAME" >> $GITHUB_ENV
78+ lz4 -B6 --content-size -q boot.img boot.img.lz4
79+ tar -c --format=gnu -f "$FILE_NAME.tar" -- *.lz4
80+ CHECKSUM="$(md5sum "$FILE_NAME.tar" | cut -d " " -f 1 | sed 's/ //')"
81+ echo -n "$CHECKSUM" >> "$FILE_NAME.tar" \
82+ && echo " $FILE_NAME.tar" >> "$FILE_NAME.tar" \
83+ && mv "$FILE_NAME.tar" "$FILE_NAME.tar.md5"
7384
7485 # 3. Upload the generated boot.img and generated dist dir
7586 - name : Upload boot.img artifact
@@ -107,4 +118,5 @@ jobs:
107118 dist.tar.gz
108119 kernel_config
109120 build_info.txt
121+ ${{ env.tar_file_name }}.tar.md5
110122
You can’t perform that action at this time.
0 commit comments