Gh action: Add retry to reproducible builds

Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2025-12-17 13:19:29 -06:00
committed by GitHub
parent d63f89c134
commit 2807f5e198

View File

@@ -116,9 +116,16 @@ jobs:
id: build
run: |
cd reproducible-builds
./build.sh public
cd ../release
# Try 3 times before the step actually fails
(./build.sh public) || \
(echo "Retry 1" && ./build.sh public) || \
(echo "Retry 2" && ./build.sh public)
- name: Get checksum of deb
id: build_checksum
run: |
cd release
BUILT_FILE=$(ls | grep deb | tail -1)
ACTUAL_SHA512=$(sha512sum $BUILT_FILE | cut -d' ' -f1)
echo "actual_sha512=$ACTUAL_SHA512" >> $GITHUB_OUTPUT
@@ -127,7 +134,7 @@ jobs:
- name: Compare checksums
run: |
ACTUAL_SHA512="${{ steps.build.outputs.actual_sha512 }}"
ACTUAL_SHA512="${{ steps.build_checksum.outputs.actual_sha512 }}"
EXPECTED_SHA512="${{ steps.download.outputs.expected_sha512 }}"
echo "Verifying ${{ steps.download.outputs.deb_file }}"
echo "" >> $GITHUB_STEP_SUMMARY