-
Notifications
You must be signed in to change notification settings - Fork 219
41 lines (40 loc) · 1.11 KB
/
ci-lazer-rust.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
name: "Lazer Rust Test Suite"
on:
push:
branches:
- main
paths:
- lazer/**
pull_request:
paths:
- lazer/**
jobs:
lazer-rust-test-suite:
name: Lazer Rust Test Suite
runs-on: ubuntu-22.04
defaults:
run:
working-directory: lazer
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.81.0
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: install extra tools
run: |
cargo install --locked [email protected]
sudo apt-get install -y protobuf-compiler
- name: Install Solana Cli
run: |
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
- name: check Cargo.toml formatting
run: find . -name Cargo.toml -exec taplo fmt --check --diff {} \;
- name: Build Solana programs
run: cargo build-sbf
- name: test
run: cargo test