File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77jobs :
88 bmark :
99 name : Julia ${{ matrix.version }} - macOS - ${{ matrix.arch }} - ${{ github.event_name }}
10- if : contains(github.event.pull_request.labels.*.name, 'benchmarks')
10+ if : github.event_name == 'workflow_call' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'benchmarks') )
1111 # FIXME: should run on hosted runner
1212 runs-on : macOS-latest
1313 strategy :
4040 id : sanitize
4141 run : echo "REPONAME=${{ github.event.repository.name }}" | sed -e 's/\.jl$//' >> $GITHUB_OUTPUT
4242 - name : Run benchmarks
43- # FIXME: reference branch should be main eventually
43+ # FIXME: we use a reference branch named jsobmarks to debug
44+ # FIXME: change reference branch to main when ready
4445 run : julia --project=benchmark -e 'using JSOBenchmarks; run_benchmarks("${{ steps.sanitize.outputs.REPONAME }}", "benchmark", reference_branch = "origin/jsobmarks")'
4546 env :
4647 GITHUB_AUTH : ${{ secrets.GIST_TOKEN }}
5758 result-encoding : string
5859 script : |
5960 const fs = require('fs');
60- return fs.readFileSync("${{ github.workspace }}/${{ github.sha }}.md", "utf8").toString();
61+ return fs.readFileSync("${{ github.workspace }}/bmark_ ${{ github.sha }}.md", "utf8").toString();
6162 - name : Comment in PR
6263 uses : thollander/actions-comment-pull-request@v2
6364 with :
7576 with :
7677 name : jso-benchmarks
7778 path : |
78- profiles_this_commit_vs_refererence_ *.svg
79+ profiles_this_commit_vs_reference_ *.svg
7980 *_vs_reference_*.jld2
8081 bmark_*.md
81- this_commit.md
8282 reference.md
83- judgement .md
83+ judgement_* .md
You can’t perform that action at this time.
0 commit comments