review cryptography (Run ID: openSVM_tornado-svm_issue_3_43e335ac) #10
This file contains hidden or 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: build | |
| on: | |
| push: | |
| branches: ['*'] | |
| tags: ['v[0-9]+.[0-9]+.[0-9]+'] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| # Rust setup and build | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Install Solana CLI | |
| run: | | |
| # Install Solana CLI tools | |
| sh -c "$(curl -sSfL https://release.solana.com/v1.16.0/install)" | |
| # Add Solana to PATH for this job | |
| echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH | |
| # Also add to PATH for current shell session | |
| export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH" | |
| # Verify installation | |
| solana --version | |
| - name: Build Solana program | |
| run: | | |
| # Ensure Solana binaries are in PATH | |
| export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH" | |
| # Try the newer cargo build-sbf command first, fall back to cargo build-bpf if not available | |
| if command -v cargo build-sbf &> /dev/null; then | |
| cargo build-sbf | |
| else | |
| cargo build-bpf | |
| fi | |
| - name: Run Solana tests | |
| run: | | |
| # Ensure Solana binaries are in PATH | |
| export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH" | |
| # Try the newer cargo test-sbf command first, fall back to cargo test-bpf if not available | |
| if command -v cargo test-sbf &> /dev/null; then | |
| cargo test-sbf | |
| else | |
| cargo test-bpf | |
| fi | |
| - name: Run Cargo Clippy | |
| run: cargo clippy -- -D warnings | |
| - name: Build client | |
| run: cd client && bun install | |
| - name: Run client tests | |
| run: cd client && bun test |