79
79
github-token : ${{ secrets.GITHUB_TOKEN }}
80
80
- run : node ./dist/scripts/ci_validate_modification.js before_data.js 'Benchmark.js Benchmark' './benchmark-data-repository'
81
81
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
84
84
runs-on : ubuntu-20.04
85
85
steps :
86
86
- uses : actions/checkout@v4
92
92
- run : npm run build
93
93
- name : Run benchmark
94
94
run : |
95
- cd examples/catch2
95
+ cd examples/catch2_v2
96
96
mkdir build && cd build
97
97
cmake -DCMAKE_BUILD_TYPE=Release ..
98
98
cmake --build . --config Release
@@ -112,12 +112,51 @@ jobs:
112
112
with :
113
113
name : Catch2 Benchmark
114
114
tool : ' catch2'
115
- output-file-path : examples/catch2 /benchmark_result.txt
115
+ output-file-path : examples/catch2_v2 /benchmark_result.txt
116
116
fail-on-alert : true
117
117
gh-repository : ' github.com/benchmark-action/github-action-benchmark-results'
118
118
github-token : ${{ secrets.GITHUB_TOKEN }}
119
119
- run : node ./dist/scripts/ci_validate_modification.js before_data.js 'Catch2 Benchmark' './benchmark-data-repository'
120
120
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
+
121
160
cpp-framework :
122
161
name : Run Google C++ Benchmark Framework example - github.com/benchmark-action/github-action-benchmark-results
123
162
runs-on : ubuntu-20.04
0 commit comments