Skip to content

Commit

Permalink
rm sha256 notices
Browse files Browse the repository at this point in the history
We don't need them any more, with the attestations.
  • Loading branch information
yshavit committed Jul 17, 2024
1 parent 93ba8df commit aef58bd
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: build-release
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ] # TODO

env:
CARGO_TERM_COLOR: always
Expand All @@ -29,24 +31,11 @@ jobs:
build_file_name=mdq
fi
echo "BUILD_FILE_NAME=${build_file_name}" >> "$GITHUB_ENV"
env:
MATRIX_OS: ${{ matrix.os }}
- name: rustc version
run: rustc --version --verbose
- uses: actions/checkout@v4
- name: build
run: cargo build --release
- name: sha256sum
shell: bash
run: |
if [[ "$RUNNER_OS" == macOS ]]; then
function sha256sum() {
shasum -a 256 "$@"
}
fi
printf '::notice title=sha256sum %s (%s)::%s\n' "$BUILD_FILE_NAME" "$MATRIX_OS" "$(sha256sum "target/release/${BUILD_FILE_NAME}" | cut -f1 -d' ')"
env:
MATRIX_OS: ${{ matrix.os }}
- name: Attest Build Provenance
uses: actions/attest-build-provenance@v1
with:
Expand All @@ -60,9 +49,6 @@ jobs:
mv "$tmp_file" target/release/mdq-installer.sh
export BUILD_FILE_NAME=mdq-installer.sh
echo BUILD_FILE_NAME=mdq-installer.sh >> "$GITHUB_ENV"
printf '::notice title=sha256sum %s (%s)::%s\n' "$BUILD_FILE_NAME" "$MATRIX_OS" "$(shasum -a 256 "target/release/${BUILD_FILE_NAME}" | cut -f1 -d' ')"
env:
MATRIX_OS: ${{ matrix.os }}
- name: Attest Build Provenance (mac installer)
if: ${{ runner.os == 'macOS' }}
uses: actions/attest-build-provenance@v1
Expand Down

0 comments on commit aef58bd

Please sign in to comment.