Skip to content

Commit

Permalink
add CI to build contract
Browse files Browse the repository at this point in the history
  • Loading branch information
makarychev committed Mar 26, 2024
1 parent 37caef6 commit b460064
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Solana_Build

on: [push]

jobs:
Test:
runs-on: [ubuntu-22.04]
env:
RUST_VERSION: 1.77.0
SOLANA_VERSION: 1.18.8

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
override: true
components: rustfmt, clippy

- name: Install Anchor
run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.29.0 anchor-cli --locked

- name: Build
run: anchor build

0 comments on commit b460064

Please sign in to comment.