7979 github-token : ${{ secrets.GITHUB_TOKEN }}
8080 - run : node ./dist/scripts/ci_validate_modification.js before_data.js 'Benchmark.js Benchmark' './benchmark-data-repository'
8181
82- catch2-framework :
83- name : Run Catch2 C++ Benchmark Framework example - github.com/benchmark-action/github-action-benchmark-results
82+ catch2-v2- framework :
83+ name : Run Catch2 C++ Benchmark Framework example (v2.x) - github.com/benchmark-action/github-action-benchmark-results
8484 runs-on : ubuntu-20.04
8585 steps :
8686 - uses : actions/checkout@v4
9292 - run : npm run build
9393 - name : Run benchmark
9494 run : |
95- cd examples/catch2
95+ cd examples/catch2_v2
9696 mkdir build && cd build
9797 cmake -DCMAKE_BUILD_TYPE=Release ..
9898 cmake --build . --config Release
@@ -112,12 +112,51 @@ jobs:
112112 with :
113113 name : Catch2 Benchmark
114114 tool : ' catch2'
115- output-file-path : examples/catch2 /benchmark_result.txt
115+ output-file-path : examples/catch2_v2 /benchmark_result.txt
116116 fail-on-alert : true
117117 gh-repository : ' github.com/benchmark-action/github-action-benchmark-results'
118118 github-token : ${{ secrets.GITHUB_TOKEN }}
119119 - run : node ./dist/scripts/ci_validate_modification.js before_data.js 'Catch2 Benchmark' './benchmark-data-repository'
120120
121+ catch2-v3-framework :
122+ name : Run Catch2 C++ Benchmark Framework example (v3.x) - github.com/benchmark-action/github-action-benchmark-results
123+ runs-on : ubuntu-20.04
124+ steps :
125+ - uses : actions/checkout@v4
126+ - uses : actions/setup-node@v4
127+ with :
128+ node-version : 20
129+ cache : ' npm'
130+ - run : npm ci
131+ - run : npm run build
132+ - name : Run benchmark
133+ run : |
134+ cd examples/catch2
135+ mkdir build && cd build
136+ cmake -DCMAKE_BUILD_TYPE=Release ..
137+ cmake --build . --config Release
138+ ./Catch2_bench > ../benchmark_result.txt
139+
140+ - uses : actions/checkout@v4
141+ with :
142+ repository : benchmark-action/github-action-benchmark-results
143+ ref : ' gh-pages'
144+ path : ' dist/other-repo'
145+ - name : Save previous data.js
146+ run : |
147+ cp ./dist/other-repo/dev/bench/data.js before_data.js
148+
149+ - name : Store benchmark result
150+ uses : ./
151+ with :
152+ name : Catch2 Benchmark (v3)
153+ tool : ' catch2'
154+ output-file-path : examples/catch2/benchmark_result.txt
155+ fail-on-alert : true
156+ gh-repository : ' github.com/benchmark-action/github-action-benchmark-results'
157+ github-token : ${{ secrets.GITHUB_TOKEN }}
158+ - run : node ./dist/scripts/ci_validate_modification.js before_data.js 'Catch2 Benchmark (v3)' './benchmark-data-repository'
159+
121160 cpp-framework :
122161 name : Run Google C++ Benchmark Framework example - github.com/benchmark-action/github-action-benchmark-results
123162 runs-on : ubuntu-20.04
0 commit comments