Skip to content

Commit

Permalink
ci/releasing: Include git sha and refname in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ckamm committed Feb 12, 2024
1 parent 007cf0d commit 150bfd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-verifiable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Verifiable Build
run: |
anchor build --verifiable --docker-image backpackapp/build:v0.28.0 --solana-version 1.16.14 -- --features enable-gpl
anchor build --verifiable --docker-image backpackapp/build:v0.28.0 --solana-version 1.16.14 --env GITHUB_SHA --env GITHUB_REF_NAME -- --features enable-gpl
- name: Generate Checksum
run: |
Expand Down
4 changes: 3 additions & 1 deletion RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@

- Do a verifiable build

anchor build --verifiable --solana-version 1.14.13 -- --features enable-gpl
Set GITHUB_SHA and GITHUB_REF_NAME to the release sha1 and tag name.

anchor build --verifiable --docker-image backpackapp/build:v0.28.0 --solana-version 1.16.14 --env GITHUB_SHA --env GITHUB_REF_NAME -- --features enable-gpl

(or wait for github to finish and create the release)

Expand Down

0 comments on commit 150bfd9

Please sign in to comment.