Skip to content

Docker images for building anchor programs

License

Notifications You must be signed in to change notification settings

wjthieme/anchor-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

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anchor-build

Docker image and GitHub Actions step for building Anchor/Solana programs.

Usage

No inputs are required.

- uses: wjthieme/anchor-build@v2

Run a different command

By default, anchor build is run. You can specify a different command with the run input.

- uses: wjthieme/anchor-build@v2
  with:
    run: "cargo build-sbf"

Use a different version of Anchor

By default, the latest version of Anchor is used. You can specify a different version with the anchor-version input.

- uses: wjthieme/anchor-build@v2
  with:
    anchor-version: "v0.29.0"

Supply a Solana private key

By default, you'll get a generated keypair to which 1 SOL is airdropped (devnet only). If you want to use your own keypair, you can supply it with the solana-key input.

- uses: wjthieme/anchor-build@v2
  with:
    solana-key: ${{ secrets.SOLANA_PRIVATE_KEY }}