From aef5ddf5a3bb146e24fdc8d9cb4a1b342ee369b1 Mon Sep 17 00:00:00 2001 From: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> Date: Mon, 15 Dec 2025 14:43:10 -0800 Subject: [PATCH] Gh action: Add retry to reproducible builds --- .github/workflows/reproducible-builds.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/reproducible-builds.yml b/.github/workflows/reproducible-builds.yml index 58a5322cdf..bbc06063bb 100644 --- a/.github/workflows/reproducible-builds.yml +++ b/.github/workflows/reproducible-builds.yml @@ -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