Skip to content

Commit d3e8f71

Browse files
committed
Build step
1 parent 62ca755 commit d3e8f71

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags:
7+
- "v*"
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
verified_build:
14+
name: verified_build
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
20+
- uses: actions-rust-lang/setup-rust-toolchain@v1
21+
with:
22+
toolchain: nightly-2024-07-25
23+
- name: Install solana-verify from crates.io
24+
uses: baptiste0928/cargo-install@v3
25+
with:
26+
crate: solana-verify
27+
version: "0.4.0"
28+
- name: install solana toolsuite
29+
run: sh -c "$(curl -sSfL https://release.solana.com/v1.18.11/install)"
30+
- name: add to path
31+
run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
32+
- run: solana-verify build --library-name program
33+
- name: Upload program artifact
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: program.so
37+
path: target/deploy/*.so
38+

0 commit comments

Comments
 (0)