Skip to content
anchor

GitHub Action

Anchor Verifiable Build

v0.1 Latest version

Anchor Verifiable Build

anchor

Anchor Verifiable Build

Generate a verifiable Anchor build

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Anchor Verifiable Build

uses: metaDAOproject/[email protected]

Learn more about this action in metaDAOproject/anchor-verifiable-build

Choose a version

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.