@@ -12,10 +12,10 @@ permissions:
1212
1313jobs :
1414 comment-linux :
15+ name : ' linux ${{ matrix.sys.compiler }}-${{ matrix.sys.version }} ${{ matrix.sys.flags }}'
1516 if : >
1617 github.event.workflow_run.event == 'pull_request' &&
1718 github.event.workflow_run.conclusion == 'success'
18- name : ' linux ${{ matrix.sys.compiler }}-${{ matrix.sys.version }} ${{ matrix.sys.flags }}'
1919 runs-on : ubuntu-latest
2020 strategy :
2121 fail-fast : false
3434 steps :
3535 - uses : actions/checkout@v4
3636 with :
37- repository : ${{ github.repository }}
3837 ref : ${{ github.event.repository.default_branch }}
3938
4039 - name : Fetch gh-pages for baseline comparison
4746 run-id : ${{ github.event.workflow_run.id }}
4847 github-token : ${{ secrets.GITHUB_TOKEN }}
4948
50- - name : Compare benchmark results
49+ - name : Compare & comment
5150 uses : benchmark-action/github-action-benchmark@v1
51+ env :
52+ GITHUB_SHA : ${{ github.event.workflow_run.head_sha }}
5253 with :
5354 tool : googlecpp
5455 output-file-path : benchmark-result.json
@@ -62,10 +63,10 @@ jobs:
6263 comment-always : true
6364
6465 comment-macos :
66+ name : ' macos-${{ matrix.os }}'
6567 if : >
6668 github.event.workflow_run.event == 'pull_request' &&
6769 github.event.workflow_run.conclusion == 'success'
68- name : ' macos-${{ matrix.os }}'
6970 runs-on : ubuntu-latest
7071 strategy :
7172 fail-fast : false
7576 steps :
7677 - uses : actions/checkout@v4
7778 with :
78- repository : ${{ github.repository }}
7979 ref : ${{ github.event.repository.default_branch }}
8080
8181 - name : Fetch gh-pages for baseline comparison
8888 run-id : ${{ github.event.workflow_run.id }}
8989 github-token : ${{ secrets.GITHUB_TOKEN }}
9090
91- - name : Compare benchmark results
91+ - name : Compare & comment
9292 uses : benchmark-action/github-action-benchmark@v1
93+ env :
94+ GITHUB_SHA : ${{ github.event.workflow_run.head_sha }}
9395 with :
9496 tool : googlecpp
9597 output-file-path : benchmark-result.json
0 commit comments