perf: use SmallVec for player-bounded buffers in equity and payoff paths #52
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: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: "-Dwarnings" | |
| jobs: | |
| check: | |
| name: Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Toolchain is pinned via rust-toolchain.toml; keep in sync with the matrix below | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: nightly-2026-06-10 | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Run clippy | |
| run: cargo clippy --all-targets --tests --benches --all-features | |
| wasm: | |
| name: Check (wasm32-unknown-unknown) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Toolchain is pinned via rust-toolchain.toml; keep in sync | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: nightly-2026-06-10 | |
| targets: wasm32-unknown-unknown | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Check wasm target | |
| run: cargo check --target wasm32-unknown-unknown -p openpql-runner -p openpql-pql-parser -p openpql-range-parser -p openpql-prelude --features openpql-prelude/serde | |
| - name: Install wasm-pack | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: wasm-pack | |
| - name: Run wasm runtime test | |
| run: wasm-pack test --node openpql-runner --test wasm | |
| test: | |
| name: Test (${{ matrix.toolchain }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # nightly pin: keep in sync with rust-toolchain.toml | |
| toolchain: [stable, nightly-2026-06-10] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: taiki-e/install-action@nextest | |
| - name: Run tests | |
| run: cargo +${{ matrix.toolchain }} nextest run --all-features | |
| - name: Run doctests | |
| run: cargo +${{ matrix.toolchain }} test --doc --all-features |