Skip to content
 
 

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Setup Anchor

An optimized action for installing Anchor.

If you just need Solana (without Anchor), you should also check out Setup Solana.

Usage

Here's an example workflow:

name: example-workflow
on: [push]
jobs:
  run-anchor-build:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v3
      - uses: metadaoproject/setup-anchor@v1.2
      - run: anchor build
        shell: bash

This will use the default versions of Anchor, Node.js, and the Solana CLI tools, which are 0.27.0, 16.15.1, and 1.15.2 respectively. You can also configure these versions like so:

steps:
  - uses: actions/checkout@v3
  - uses: metadaoproject/setup-anchor@v3.1
    with:
      anchor-version: '0.30.1'
      solana-cli-version: '1.18.18' # Set it to 2.x.x to use the Anza release
      node-version: '20.16.0'

License

The scripts and documentation in this project are released under the MIT License.

About

Optimized GitHub action to install Anchor

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors