Skip to content

Setup Anchor

Actions
Install Anchor, Solana CLI tools, and Node.js
v3.1
Latest
Star (11)

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/[email protected]
      - 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@v2
    with: 
      anchor-version: '0.28.0' 
      solana-cli-version: '1.14.20'
      node-version: '16.15.1'

License

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

Setup Anchor is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Install Anchor, Solana CLI tools, and Node.js
v3.1
Latest

Setup Anchor is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.