Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,17 @@ jobs:
- name: Build Artifacts
run: nix build .#release --option warn-dirty false --print-build-logs

- name: Validate Artifacts
run: |
for f in $(find result/ -type f -not -name '*.sha256'); do
want=$(sha256sum "${f}" | head -c 64)
got=$(cat "${f}.sha256")
if [[ "${want}" != "${got}" ]]; then
echo "File ${f} has incorrect checksum; want ${want}, got ${got}"
exit 1
fi
done

- name: Upload Artifacts
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
Expand Down
3 changes: 3 additions & 0 deletions nix/build.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ let
mv $out/bin/${platform.os}_${platform.arch}/* $out/bin/
rmdir $out/bin/${platform.os}_${platform.arch}
fi
'';

postFixup = ''
cd $out/bin
sha256sum ${pname}${ext} | head -c 64 > ${pname}${ext}.sha256
'';
Expand Down
Loading