Skip to content

Commit c51ba63

Browse files
authored
ci: more checksums in guix workflow (#5417)
## Issue being fixed or feature implemented 1. not all binaries were covered with checksums 2. there were no checksums for archives ## What was done? add missing checksums, also group and sort them ## How Has This Been Tested? run commands after local guix build see this PR results ## Breaking Changes n/a ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_
1 parent 66dfd36 commit c51ba63

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/guix-build.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,14 @@ jobs:
5959
echo "Guix build failed!"
6060
exit 1
6161
fi
62-
- name: Compute SHA1 checksum
62+
- name: Compute SHA256 checksums for binaries
6363
run: |
64-
sha1sum guix-build-$(git rev-parse --short=12 HEAD)/distsrc-*/src/dashd{,.exe}
65-
sha1sum guix-build-$(git rev-parse --short=12 HEAD)/distsrc-*/src/qt/dash-qt{,.exe}
66-
- name: Compute SHA256 checksum
64+
( \
65+
SRC_PATH_PREFIX=guix-build-$(git rev-parse --short=12 HEAD)/distsrc- && \
66+
sha256sum ${SRC_PATH_PREFIX}*/src/dash{d,-cli,-tx,-wallet}{,.exe} && \
67+
sha256sum ${SRC_PATH_PREFIX}*/src/qt/dash-qt{,.exe} && \
68+
sha256sum ${SRC_PATH_PREFIX}*/src/test/test_dash{,.exe} \
69+
) | sort -k 2
70+
- name: Compute SHA256 checksums for archives
6771
run: |
68-
sha256sum guix-build-$(git rev-parse --short=12 HEAD)/distsrc-*/src/dashd{,.exe}
69-
sha256sum guix-build-$(git rev-parse --short=12 HEAD)/distsrc-*/src/qt/dash-qt{,.exe}
72+
find guix-build-"$(git rev-parse --short=12 HEAD)"/output -type f | grep -v SHA256 | xargs sha256sum | sort -k 2

0 commit comments

Comments
 (0)