Update publish workflow #39
Workflow file for this run
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: Benchmark | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: benchmark-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| benchmark: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install hyperfine | |
| run: sudo apt-get update && sudo apt-get install -y hyperfine | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.x" | |
| - name: Install Timescales benchmarking tool | |
| run: | | |
| pip install git+https://github.com/doganulus/timescales.git | |
| - name: Generate Timescales benchmarks | |
| run: | | |
| timescales-generate-large --failing-end --output-dir benchmarks/data | |
| - name: Build and install ryjson application | |
| run: | | |
| cmake -S . -B build -DREELAY_BUILD_APPS=ON | |
| cmake --build build | |
| sudo cmake --install build | |
| - name: Run Timescales benchmarks | |
| run: bash benchmarks/ryjson-benchmark.sh benchmarks/data | |
| - name: Upload benchmark results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: benchmark-results-${{ github.run_id }} | |
| path: benchmarks/data/*.results.json |