Skip to content

metaDAOproject/anchor-verifiable-build

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Anchor Verifiable Build

License MIT

An action for generating verifiable Anchor builds.

Usage

Example workflow

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.

Credits

This is a modification of Helium's build verified action that they use internally.