File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 21
21
env :
22
22
CC : clang-22
23
23
CXX : clang++-22
24
- COMMENT_BODY : ${{ github.event.comment.body }}
24
+ COMMENT_BODY : ${{ github.event.comment.body }}
25
+ PULL_REQUEST_HEAD : ${{ github.event.issue.pull_request.head.sha }}
26
+ PULL_REQUEST_BASE : ${{ github.event.issue.pull_request.base.sha }}
25
27
26
28
jobs :
27
29
run-benchmarks :
33
35
steps :
34
36
- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
35
37
with :
38
+ ref : ${PULL_REQUEST_HEAD}
36
39
fetch-depth : 0
37
40
fetch-tags : true # This job requires access to all the Git branches so it can diff against (usually) main
38
41
@@ -49,13 +52,13 @@ jobs:
49
52
- name : Run baseline
50
53
run : |
51
54
BENCHMARKS=$(echo "${COMMENT_BODY}" | sed -nE 's/\/libcxx-bot benchmark (.+)/\1/p')
52
- baseline_commit=$(git merge-base refs/remotes/origin/${GITHUB_BASE_REF } ${GITHUB_SHA })
55
+ baseline_commit=$(git merge-base ${PULL_REQUEST_BASE } ${PULL_REQUEST_SHA })
53
56
./libcxx/utils/test-at-commit --commit ${baseline_commit} -B build/baseline -- -sv -j1 --param optimization=speed ${BENCHMARKS}
54
57
55
58
- name : Run candidate
56
59
run : |
57
60
BENCHMARKS=$(echo "${COMMENT_BODY}" | sed -nE 's/\/libcxx-bot benchmark (.+)/\1/p')
58
- ./libcxx/utils/test-at-commit --commit ${GITHUB_SHA } -B build/candidate -- -sv -j1 --param optimization=speed ${BENCHMARKS}
61
+ ./libcxx/utils/test-at-commit --commit ${PULL_REQUEST_SHA } -B build/candidate -- -sv -j1 --param optimization=speed ${BENCHMARKS}
59
62
60
63
- name : Compare baseline and candidate runs
61
64
run : ./libcxx/utils/compare-benchmarks <(./libcxx/utils/consolidate-benchmarks build/baseline) \
You can’t perform that action at this time.
0 commit comments