Skip to content

Commit d56cf62

Browse files
committed
server: bench: create a script to wrap all operations
1 parent 53250a6 commit d56cf62

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/bench.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,19 +130,20 @@ jobs:
130130
# message-id: bench-${{ github.job }}-${{ env.RUNNER_LABEL }}
131131
# message: |
132132
# $BENCH_PR_COMMENT
133-
- name: Upload results
134-
uses: edunad/[email protected]
135-
with:
136-
path: '*.png'
137-
title: |
138-
llama.cpp server benchmark results for ${{ github.job }} on ${{ env.RUNNER_LABEL }}: ${{ env.LLAMACPP_TOKENS_SECOND_AVG}}tk/s
139-
annotationLevel: 'success'
140133

141134
- name: Commit status
142135
uses: Sibz/github-status-action@v1
143136
with:
144-
authToken: ${{secrets.GITHUB_TOKEN}}
145137
context: ${{ github.job }}
146138
description: |
147139
$BENCH_RESULTS
148-
state: 'success'
140+
state: 'success'
141+
142+
- name: Upload results
143+
if: ${{ github.event.pull_request != '' }}
144+
uses: edunad/[email protected]
145+
with:
146+
path: '*.png'
147+
title: |
148+
llama.cpp server benchmark results for ${{ github.job }} on ${{ env.RUNNER_LABEL }}: ${{ env.LLAMACPP_TOKENS_SECOND_AVG}}tk/s
149+
annotationLevel: 'success'

0 commit comments

Comments
 (0)