Improve graph library #141
This file contains 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: | |
- master | |
jobs: | |
run-benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up Julia | |
uses: julia-actions/setup-julia@v2 | |
with: | |
version: '1' | |
- name: Run benchmarks | |
run: | | |
julia --project=benchmark -e 'using Pkg; Pkg.instantiate()' | |
julia --project=benchmark benchmark/run_benchmarks.jl > benchmark_results.txt | |
- name: Upload benchmark results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: benchmark-results | |
path: benchmark_results.txt | |
- name: Post results to PR | |
uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
path: benchmark_results.txt |