Skip to content

Commit 64579b1

Browse files
authored
chore: add verified build (#79)
* Add verified build * permissions
1 parent ca00896 commit 64579b1

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: build
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- release/*
9+
10+
jobs:
11+
build:
12+
# solana-verify: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by solana-verify)
13+
runs-on: ubuntu-24.04
14+
permissions:
15+
id-token: write
16+
contents: write
17+
attestations: write
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
submodules: true
22+
- name: install solana-verify
23+
run: |
24+
curl -L https://github.com/Ellipsis-Labs/solana-verifiable-build/releases/download/v0.4.1/solana-verify-linux -o solana-verify
25+
chmod +x solana-verify
26+
sudo mv solana-verify /usr/local/bin/
27+
- name: run solana-verify build
28+
run: |
29+
solana-verify build
30+
- name: Artifact Attestations
31+
id: attestation
32+
uses: actions/attest-build-provenance@v2
33+
with:
34+
subject-path: |
35+
target/deploy/gateway.so
36+
- name: Archive program artifacts
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: program
40+
path: target/deploy/gateway.so

0 commit comments

Comments
 (0)