Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Solana BPF Build & Test Matrix

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

jobs:
build-test:
name: Build & Test (Rust ${{ matrix.rust }} • Solana ${{ matrix.solana }})
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
rust: [1.75.0, stable]
solana: [1.16.1]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy

- name: Install Solana CLI
run: |
sh -c "$(curl -sSfL https://release.solana.com/v${{ matrix.solana }}/install)"