diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..6a3a924 --- /dev/null +++ b/.github/workflows/build-test.yml @@ -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)"