mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Gh action: Add retry to reproducible builds
This commit is contained in:
13
.github/workflows/reproducible-builds.yml
vendored
13
.github/workflows/reproducible-builds.yml
vendored
@@ -116,9 +116,16 @@ jobs:
|
|||||||
id: build
|
id: build
|
||||||
run: |
|
run: |
|
||||||
cd reproducible-builds
|
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)
|
BUILT_FILE=$(ls | grep deb | tail -1)
|
||||||
ACTUAL_SHA512=$(sha512sum $BUILT_FILE | cut -d' ' -f1)
|
ACTUAL_SHA512=$(sha512sum $BUILT_FILE | cut -d' ' -f1)
|
||||||
echo "actual_sha512=$ACTUAL_SHA512" >> $GITHUB_OUTPUT
|
echo "actual_sha512=$ACTUAL_SHA512" >> $GITHUB_OUTPUT
|
||||||
@@ -127,7 +134,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Compare checksums
|
- name: Compare checksums
|
||||||
run: |
|
run: |
|
||||||
ACTUAL_SHA512="${{ steps.build.outputs.actual_sha512 }}"
|
ACTUAL_SHA512="${{ steps.build_checksum.outputs.actual_sha512 }}"
|
||||||
EXPECTED_SHA512="${{ steps.download.outputs.expected_sha512 }}"
|
EXPECTED_SHA512="${{ steps.download.outputs.expected_sha512 }}"
|
||||||
echo "Verifying ${{ steps.download.outputs.deb_file }}"
|
echo "Verifying ${{ steps.download.outputs.deb_file }}"
|
||||||
echo "" >> $GITHUB_STEP_SUMMARY
|
echo "" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|||||||
Reference in New Issue
Block a user