Skip to content

Commit

Permalink
Add attestation of binaries uploaded to release (#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch authored Oct 15, 2024
1 parent d538ea9 commit 18adf2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ jobs:
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
working-directory: ${{ env.BUILD_WORKING_DIR }}
run: cargo build --target-dir="$GITHUB_WORKSPACE/target" --package ${{ matrix.crate.name }} --features opt --release --target ${{ matrix.sys.target }}
- name: Build provenance for attestation (release only)
if: github.event_name == 'release'
uses: actions/attest-build-provenance@v1
with:
subject-path: target/${{ matrix.sys.target }}/release/${{ matrix.crate.binary }}${{ matrix.sys.ext }}
- name: Compress
run: |
cd target/${{ matrix.sys.target }}/release
Expand Down

0 comments on commit 18adf2b

Please sign in to comment.