Skip to content

Commit

Permalink
add workflow to do verified build
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Dec 7, 2023
1 parent 7bb8b65 commit 38e8ba3
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: main

on:
push:
branches: master
pull_request:
branches: master

defaults:
run:
shell: bash
working-directory: .

env:
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN: 1.62.0
SOLANA_VERSION: '1.14.16'

jobs:
verified-build:
name: Build Verifiable Artifact
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Solana Verify
run: |
cargo install solana-verify
solana-verify --version
- name: Verifiable Build
run: |
solana-verify build --library-name drift_competitions
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: build
path: target/deploy/drift_competitions.so

0 comments on commit 38e8ba3

Please sign in to comment.