Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore: add verified build #79

Merged
merged 2 commits into from
Feb 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build

on:
pull_request:
push:
branches:
- main
- release/*

jobs:
build:
# solana-verify: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by solana-verify)
runs-on: ubuntu-24.04
permissions:
id-token: write
contents: write
attestations: write
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: install solana-verify
run: |
curl -L https://github.com/Ellipsis-Labs/solana-verifiable-build/releases/download/v0.4.1/solana-verify-linux -o solana-verify
chmod +x solana-verify
sudo mv solana-verify /usr/local/bin/
- name: run solana-verify build
run: |
solana-verify build
- name: Artifact Attestations
id: attestation
uses: actions/attest-build-provenance@v2
with:
subject-path: |
target/deploy/gateway.so
- name: Archive program artifacts
uses: actions/upload-artifact@v4
with:
name: program
path: target/deploy/gateway.so