Преглед на файлове

ci: bring back individual checksum files

Signed-off-by: Nick Sieger <[email protected]>
Nick Sieger преди 3 години
родител
ревизия
63b126622d
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      .github/workflows/ci.yml

+ 2 - 1
.github/workflows/ci.yml

@@ -199,9 +199,10 @@ jobs:
         name: Create checksums
         working-directory: ${{ env.DESTDIR }}
         run: |
-          find . -type f -print0 | sort -z | xargs -r0 shasum -a 256 -b | sed 's# .*/#  #' > $RUNNER_TEMP/checksums.txt
+          find . -type f -print0 | sort -z | xargs -r0 shasum -a 256 -b | sed 's# \*\./# *#' > $RUNNER_TEMP/checksums.txt
           shasum -a 256 -U -c $RUNNER_TEMP/checksums.txt
           mv $RUNNER_TEMP/checksums.txt .
+          cat checksums.txt | while read sum file; do echo "$sum $file" > ${file#\*}.sha256; done
       -
         name: License
         run: cp packaging/* ${{ env.DESTDIR }}/