Skip to content

Commit 7f6b361

Browse files
committed
fixes in workflow
1 parent 3598dfa commit 7f6b361

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/jsobmarks.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
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:
@@ -40,7 +40,8 @@ jobs:
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 }}
@@ -57,7 +58,7 @@ jobs:
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:
@@ -75,9 +76,8 @@ jobs:
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

0 commit comments

Comments
 (0)