feat: add verifiable build for svm contract #5
Workflow file for this run
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: Release SVM Program | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- contracts/svm/** | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Solana Verify CLI | ||
run: | | ||
cargo install solana-verify --git https://github.com/Ellipsis-Labs/solana-verifiable-build --rev 121568e | ||
- name: Build | ||
working-directory: ./contracts/svm | ||
run: solana-verify build | ||
- name: Print Hash | ||
working-directory: ./contracts/svm | ||
run: sha256sum ./target/deploy/express_relay.so | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
working-directory: ./contracts/svm | ||
with: | ||
name: express_relay.so | ||
path: ./target/deploy/express_relay.so | ||
retention-days: 90 |