diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index ddafa227..35cae0af 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -8,6 +8,9 @@ on: branches: - master +env: + SOLANA_VERSION: v1.16.3 + jobs: misc: name: Miscellaneous checks @@ -35,6 +38,24 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} args: --all-features -- -D warnings + solana-build: + name: Cargo Build using bpf (solana env) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Rust + uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + components: rustfmt + + - name: Install Solana CLI + run: curl -sSfL https://release.solana.com/$SOLANA_VERSION/install | sh + shell: bash + + - name: Run build-bpf + run: cargo build-bpf + stable: name: Rust tests runs-on: ubuntu-latest