This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-awesome.git


The following commit(s) were added to refs/heads/master by this push:
     new bc2469e  Benchmark 1209 (#108)
bc2469e is described below

commit bc2469ee624e9b633da0d2b6d4c28231ef68c010
Author: WenChen <[email protected]>
AuthorDate: Fri Dec 9 11:34:49 2022 +0800

    Benchmark 1209 (#108)
    
    * benchmark输出文件格式修改
    
    * benchmark输出文件格式修改+1
---
 .github/workflows/benchmark.yml | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
index fe88af5..33577b2 100644
--- a/.github/workflows/benchmark.yml
+++ b/.github/workflows/benchmark.yml
@@ -23,7 +23,7 @@ jobs:
           cp *_output/*.md benchmark/$dirname && rm -rf *_output/*.md
       - name: Deploy
         uses: peaceiris/actions-gh-pages@v3
-        #if: github.ref == 'refs/heads/master'
+        if: github.ref == 'refs/heads/master'
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}
           publish_branch: report/benchmark
@@ -56,12 +56,7 @@ jobs:
       - name: Run benchmark
         run: |
           fileName=${{ matrix.target }}_output
-          ./benchmark.sh -a "--warmupIterations=1 --warmupTime=1 
--measurementIterations=1 --measurementTime=1" ${{ matrix.target }}-client > 
$fileName.txt
-      - name: Generate md file
-        run:  |
-          fileName=${{ matrix.target }}_output
-          echo "\`\`\`java" >> $fileName.md &&
-          cat $fileName.txt >> $fileName.md && echo "\`\`\`" >> $fileName.md
+          ./benchmark.sh -a "--warmupIterations=1 --warmupTime=1 
--measurementIterations=1 --measurementTime=1" -f $fileName.md ${{ 
matrix.target }}-client
       - name: Kill jobs
         run: jobs -p | grep -o -E '\s\d+\s' | xargs kill || true
       - name: Save output

Reply via email to