@@ -60,14 +60,47 @@ jobs:
6060
6161 - name : Calculate SHA256 checksums
6262 run : |
63- sha256sum ${{ matrix.android_abi }}-android-dynamic.tar.zst
64- sha256sum ${{ matrix.android_abi }}-android-dynamic-debug.tar.zst
63+ sha256sum ${{ matrix.android_abi }}-android-dynamic.tar.zst > ${{ matrix.android_abi }}-checksums.txt
64+ sha256sum ${{ matrix.android_abi }}-android-dynamic-debug.tar.zst >> ${{ matrix.android_abi }}-checksums.txt
65+ cat ${{ matrix.android_abi }}-checksums.txt
6566
6667 - name : Upload libraries
6768 uses : actions/upload-artifact@v4
6869 with :
6970 path : |
7071 ${{ matrix.android_abi }}-android-dynamic.tar.zst
7172 ${{ matrix.android_abi }}-android-dynamic-debug.tar.zst
73+ ${{ matrix.android_abi }}-checksums.txt
7274 name : ${{ matrix.android_abi }}-android-dynamic
7375 compression-level : 1
76+
77+ summary :
78+ needs : download
79+ runs-on : ubuntu-latest
80+ steps :
81+ - name : Download All Checksums
82+ uses : actions/download-artifact@v4
83+ with :
84+ pattern : " *-android-dynamic"
85+ merge-multiple : true
86+
87+ - name : Create Summary
88+ run : |
89+ echo "# Build Artifacts SHA256 Checksums" >> $GITHUB_STEP_SUMMARY
90+ echo "" >> $GITHUB_STEP_SUMMARY
91+ echo "| Architecture | File | SHA256 |" >> $GITHUB_STEP_SUMMARY
92+ echo "|--------------|------|--------|" >> $GITHUB_STEP_SUMMARY
93+
94+ for checksum_file in *-checksums.txt; do
95+ arch=$(echo $checksum_file | sed 's/-checksums.txt//')
96+ while IFS=' ' read -r hash filename; do
97+ echo "| $arch | $filename | \`$hash\` |" >> $GITHUB_STEP_SUMMARY
98+ done < "$checksum_file"
99+ done
100+
101+ echo "" >> $GITHUB_STEP_SUMMARY
102+ echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
103+ for checksum_file in *-checksums.txt; do
104+ cat "$checksum_file" >> $GITHUB_STEP_SUMMARY
105+ done
106+ echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
0 commit comments