feat: Add new command to set swap platform fee (#414) #6
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: Test and release SVM contracts | |
on: | |
pull_request: | |
paths: | |
- contracts/svm/** | |
push: | |
branches: | |
- main | |
paths: | |
- contracts/svm/** | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./contracts/svm | |
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 | |
run: solana-verify build | |
- name: Run tests | |
env: | |
SBF_OUT_DIR: ${{ github.workspace }}/contracts/svm/target/deploy | |
run: cargo test --target-dir ./target-tests | |
- name: Print Hash | |
run: sha256sum ./target/deploy/express_relay.so | |
- name: Upload artifact | |
if: github.event_name == 'push' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: express_relay.so | |
path: ./target/deploy/express_relay.so | |
retention-days: 90 |