Upgrade yellowstone-grpc to v13/v12 and tonic to v0.14 (#152) #58
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: ci | |
| on: | |
| push: | |
| branches: [master] | |
| tags: | |
| - "v*" | |
| pull_request: | |
| branches: [master] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| security_audit: | |
| name: security_audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install cargo-audit from crates.io | |
| uses: baptiste0928/cargo-install@v3 | |
| with: | |
| crate: cargo-audit | |
| version: "0.22.1" | |
| - run: >- | |
| cargo audit | |
| --ignore RUSTSEC-2022-0093 | |
| --ignore RUSTSEC-2024-0344 | |
| --ignore RUSTSEC-2024-0421 | |
| --ignore RUSTSEC-2025-0022 | |
| --ignore RUSTSEC-2025-0009 | |
| --ignore RUSTSEC-2025-0004 | |
| --ignore RUSTSEC-2024-0357 | |
| --ignore RUSTSEC-2024-0336 | |
| --ignore RUSTSEC-2025-0055 | |
| --ignore RUSTSEC-2024-0437 | |
| --ignore RUSTSEC-2025-0134 | |
| --ignore RUSTSEC-2026-0009 | |
| --ignore RUSTSEC-2026-0104 | |
| --ignore RUSTSEC-2026-0098 | |
| --ignore RUSTSEC-2026-0099 | |
| lint: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| components: rustfmt, clippy | |
| toolchain: stable | |
| - name: Install cargo-sort from crates.io | |
| uses: baptiste0928/cargo-install@v3 | |
| with: | |
| crate: cargo-sort | |
| version: "2.0.2" | |
| - run: cargo sort --workspace --check | |
| - run: cargo fmt --all --check | |
| - run: cargo clippy | |
| build: | |
| name: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Building programs | |
| run: cargo build --release | |
| - name: Upload jito-bell | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: jito-bell | |
| path: target/release/jito-bell | |
| test: | |
| name: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup Rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: stable | |
| - name: Run tests | |
| run: cargo test --workspace | |
| - name: Run doc tests | |
| run: cargo test --doc | |
| - name: Check examples | |
| run: cargo check --examples | |
| create_release: | |
| name: Create Release | |
| needs: | |
| - build | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref, 'refs/tags/') | |
| steps: | |
| - name: Download all artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| merge-multiple: true | |
| - run: ls -lh | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: | | |
| jito-bell | |
| fail_on_unmatched_files: true |