An action for generating verifiable Anchor builds.
Here's an example workflow:
name: update-verifiable-build
on: [push]
jobs:
run-anchor-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: metadaoproject/anchor-verifiable-build@v0
with:
program: 'autocrat_v0'
anchor-version: '0.29.0'
solana-cli-version: '1.17.16'
- run: cp target/deploy/autocrat_v0.so ./verifiable-builds
- name: Commit verifiable build if it's different from what exists
uses: EndBug/[email protected]
with:
default_author: github_actions
message: 'Update verifiable build'
This workflow generates verifiable builds for 'autocrat_v0' and stores them in the verifiable-builds folder.
This is a modification of Helium's build verified action that they use internally.