add workflow to do verified build #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |