Skip to content

Commit

Permalink
chore: force sha256sum to always read in binary mode
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <nathan@swirldslabs.com>
  • Loading branch information
nathanklick committed Dec 13, 2023
1 parent d87f20f commit 7f312f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ end_group

start_group "Generating Library Hashes (${GITHUB_WORKSPACE}/${RELEASE_LIB_PATH}/*.jar)"
pushd "${GITHUB_WORKSPACE}/${RELEASE_LIB_PATH}" >/dev/null 2>&1 || fail "PUSHD ERROR (Exit Code: ${?})" "${?}"
${SHA256SUM} -- *.jar | sort -k 2 | tee -a "${TEMP_DIR}"/libraries.sha256
${SHA256SUM} -b -- *.jar | sort -k 2 | tee -a "${TEMP_DIR}"/libraries.sha256
popd >/dev/null 2>&1 || fail "POPD ERROR (Exit Code: ${?})" "${?}"
end_group

start_group "Generating Application Hashes (${GITHUB_WORKSPACE}/${RELEASE_APPS_PATH}/*.jar)"
pushd "${GITHUB_WORKSPACE}/${RELEASE_APPS_PATH}" >/dev/null 2>&1 || fail "PUSHD ERROR (Exit Code: ${?})" "${?}"
${SHA256SUM} -- *.jar | sort -k 2 | tee -a "${TEMP_DIR}"/applications.sha256
${SHA256SUM} -b -- *.jar | sort -k 2 | tee -a "${TEMP_DIR}"/applications.sha256
popd >/dev/null 2>&1 || fail "POPD ERROR (Exit Code: ${?})" "${?}"
end_group

Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/zxc-verify-gradle-build-determinism.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,6 @@ jobs:
MANIFEST_PATH: ${{ env.GRADLE_MANIFEST_PATH }}/regenerated
run: ${{ env.GRADLE_MANIFEST_GENERATOR }}

- name: Fix Windows Manifests
if: ${{ runner.os == 'Windows' && steps.regen-manifest.conclusion == 'success' && !cancelled() && !failure() }}
run: |
cat "${{ steps.regen-manifest.outputs.libraries }}" | tr '*' ' ' | tee "${{ steps.regen-manifest.outputs.libraries }}" >/dev/null
cat "${{ steps.regen-manifest.outputs.applications }}" | tr '*' ' ' | tee "${{ steps.regen-manifest.outputs.applications }}" >/dev/null
- name: Validate Libraries
working-directory: ${{ github.workspace }}/hedera-node/data/lib
run: sha256sum -c "${GRADLE_MANIFEST_PATH}/libraries.sha256"
Expand Down

0 comments on commit 7f312f3

Please sign in to comment.