From 60372d512e82467f1237145175c9ba0a000175d4 Mon Sep 17 00:00:00 2001 From: Feilin Jia Date: Thu, 19 Feb 2026 14:59:12 +0000 Subject: [PATCH] add source checksums to release artifacts Generate MD5 checksums of all source files (after patches are applied) and attach as source_checksums_with_patches.csv to the GitHub Release. Checksum generation runs as a dedicated workflow step rather than in stage.sh, since it is a release artifact concern not a build concern. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/build_and_release.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index 80695741..2bff5692 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -40,6 +40,15 @@ jobs: - name: Run stage.sh run: bash stage.sh + - name: Generate source checksums + run: | + { echo "filepath,md5" + find ESP/EngSketchPad -type f \( -name '*.c' -o -name '*.h' -o -name '*.cpp' -o -name '*.f' -o -name '*.py' -o -name '*.make' -o -name '[Mm]akefile' \) -exec md5sum {} + \ + | sed 's|ESP/EngSketchPad/||' \ + | sort -k2 \ + | awk '{print $2","$1}' + } > source_checksums_with_patches.csv + - name: Clean up build intermediates run: rm -rf ESP ESP*.tgz @@ -54,4 +63,6 @@ jobs: tag_name: ${{ inputs.tag }} name: ${{ inputs.tag }} target_commitish: ${{ github.sha }} - files: ${{ github.event.repository.name }}-${{ inputs.tag }}.tar.gz + files: | + ${{ github.event.repository.name }}-${{ inputs.tag }}.tar.gz + source_checksums_with_patches.csv