forked from exo-tech-xyz/stake-deposit-interceptor
-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (59 loc) · 1.77 KB
/
Copy pathbuild.yml
File metadata and controls
61 lines (59 loc) · 1.77 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build
on:
push:
branches:
- master
tags:
- "v*"
pull_request:
branches:
- master
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy
toolchain: "1.85.0"
- name: Install cargo-sort from crates.io
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-sort
- run: sudo apt-get install protobuf-compiler -y
- run: cargo sort --workspace --check
- run: cargo fmt --all --check
- run: cargo clippy --all-features --all-targets --tests -- -D warnings
verified_build:
name: verified_build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install solana-verify deps
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler libudev-dev libclang-dev
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: "1.85.0"
- name: Install solana-verify from crates.io
uses: baptiste0928/cargo-install@v3
with:
crate: solana-verify
version: "0.4.11"
- name: install solana toolsuite
run: sh -c "$(curl -sSfL https://release.anza.xyz/v2.2.1/install)"
- name: add to path
run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- run: solana-verify build --library-name stake_deposit_interceptor
- name: Upload program artifact
uses: actions/upload-artifact@v4
with:
name: program.so
path: target/deploy/*.so