Multi-listener OrderBook + Stop / Stop-Limit orders #1
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 ] | |
| jobs: | |
| build-and-test: | |
| name: ${{ matrix.os }} / ${{ matrix.build_type }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| build_type: [Release, Debug] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Configure | |
| run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | |
| - name: Build | |
| run: cmake --build build --parallel | |
| - name: Run tests (ctest) | |
| working-directory: build | |
| run: ctest --output-on-failure | |
| - name: Quick benchmarks | |
| if: matrix.build_type == 'Release' | |
| working-directory: build | |
| run: | | |
| ./bin/bench_throughput || true | |
| ./bin/bench_latency --ops 200000 --warmup 20000 || true |