name: Benchmark on: workflow_dispatch: workflow_call: jobs: ldbc_benchmark: name: ldbc benchmark env: GEN: Ninja runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Setup ccache uses: hendrikmuhs/ccache-action@v1.2 with: key: benchmark-${{ runner.os }} - name: Build run: make benchmark - name: Benchmark continue-on-error: true run: | set +e uv run benchmark/benchmark_runner.py --dataset ldbc-sf10 echo $? > benchmark/exit_code - name: Upload benchmark logs uses: actions/upload-artifact@v4 with: name: benchmark-logs path: /tmp/benchmark_logs - name: Upload comparison results uses: actions/upload-artifact@v4 with: name: comparison-results path: benchmark/compare_result.md - name: Fail if benchmark failed run: | if [ $(cat benchmark/exit_code) -ne 0 ]; then echo "Benchmark failed" exit 1 fi