-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 1.02 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
name: Solana_Build
on: [push]
jobs:
Test:
runs-on: [ubuntu-22.04]
env:
RUST_VERSION: 1.77.0
SOLANA_VERSION: 1.18.8
ANCHOR_VERSION: 0.29.0
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
override: true
components: rustfmt, clippy
- name: Install Solana
uses: metadaoproject/[email protected]
with:
solana-cli-version: ${{ env.SOLANA_VERSION }}
- name: Generate Key
run: solana-keygen new --no-passphrase
- name: Install Anchor
run: cargo install --git https://github.com/coral-xyz/anchor --tag v${{ env.ANCHOR_VERSION }} anchor-cli --locked
- name: Build
run: anchor build
- name: Install JS Dependencies
run: yarn install
- name: JS Tests
run: anchor test