1919 benchmark-mysql-reads :
2020 name : MySQL Reads Benchmark
2121 runs-on : ubuntu-latest
22+ defaults :
23+ run :
24+ working-directory : ./benchmark
2225
2326 steps :
2427 - uses : actions/checkout@v4
@@ -32,25 +35,29 @@ jobs:
32353336 with :
3437 load-mode : strict
38+ path : benchmark
3539
3640 - name : Docker compose
3741 uses :
hoverkraft-tech/[email protected] 3842 with :
3943 services : mysqldb
4044
4145 - name : Run Benchmark
42- run : ./benchmark/ scripts/run_single_benchmark.sh mysql reads
46+ run : ./scripts/run_single_benchmark.sh mysql reads
4347
4448 - name : Upload Results
4549 uses : actions/upload-artifact@v4
4650 if : success()
4751 with :
4852 name : mysql-reads-results
49- path : benchmark/ BenchmarkDotNet.Artifacts/mysql/reads
53+ path : BenchmarkDotNet.Artifacts/mysql/reads
5054
5155 benchmark-mysql-writes :
5256 name : MySQL Writes Benchmark
5357 runs-on : ubuntu-latest
58+ defaults :
59+ run :
60+ working-directory : ./benchmark
5461
5562 steps :
5663 - uses : actions/checkout@v4
@@ -64,25 +71,29 @@ jobs:
64716572 with :
6673 load-mode : strict
74+ path : benchmark
6775
6876 - name : Docker compose
6977 uses :
hoverkraft-tech/[email protected] 7078 with :
7179 services : mysqldb
7280
7381 - name : Run Benchmark
74- run : ./benchmark/ scripts/run_single_benchmark.sh mysql writes
82+ run : ./scripts/run_single_benchmark.sh mysql writes
7583
7684 - name : Upload Results
7785 uses : actions/upload-artifact@v4
7886 if : success()
7987 with :
8088 name : mysql-writes-results
81- path : benchmark/ BenchmarkDotNet.Artifacts/mysql/writes
89+ path : BenchmarkDotNet.Artifacts/mysql/writes
8290
8391 benchmark-postgresql-reads :
8492 name : PostgreSQL Reads Benchmark
8593 runs-on : ubuntu-latest
94+ defaults :
95+ run :
96+ working-directory : ./benchmark
8697
8798 steps :
8899 - uses : actions/checkout@v4
@@ -96,25 +107,29 @@ jobs:
9610797108 with :
98109 load-mode : strict
110+ path : benchmark
99111
100112 - name : Docker compose
101113 uses :
hoverkraft-tech/[email protected] 102114 with :
103115 services : postgresdb
104116
105117 - name : Run Benchmark
106- run : ./benchmark/ scripts/run_single_benchmark.sh postgresql reads
118+ run : ./scripts/run_single_benchmark.sh postgresql reads
107119
108120 - name : Upload Results
109121 uses : actions/upload-artifact@v4
110122 if : success()
111123 with :
112124 name : postgresql-reads-results
113- path : benchmark/ BenchmarkDotNet.Artifacts/postgresql/reads
125+ path : BenchmarkDotNet.Artifacts/postgresql/reads
114126
115127 benchmark-postgresql-writes :
116128 name : PostgreSQL Writes Benchmark
117129 runs-on : ubuntu-latest
130+ defaults :
131+ run :
132+ working-directory : ./benchmark
118133
119134 steps :
120135 - uses : actions/checkout@v4
@@ -128,25 +143,29 @@ jobs:
128143129144 with :
130145 load-mode : strict
146+ path : benchmark
131147
132148 - name : Docker compose
133149 uses :
hoverkraft-tech/[email protected] 134150 with :
135151 services : postgresdb
136152
137153 - name : Run Benchmark
138- run : ./benchmark/ scripts/run_single_benchmark.sh postgresql writes
154+ run : ./scripts/run_single_benchmark.sh postgresql writes
139155
140156 - name : Upload Results
141157 uses : actions/upload-artifact@v4
142158 if : success()
143159 with :
144160 name : postgresql-writes-results
145- path : benchmark/ BenchmarkDotNet.Artifacts/postgresql/writes
161+ path : BenchmarkDotNet.Artifacts/postgresql/writes
146162
147163 benchmark-sqlite-reads :
148164 name : SQLite Reads Benchmark
149165 runs-on : ubuntu-latest
166+ defaults :
167+ run :
168+ working-directory : ./benchmark
150169
151170 steps :
152171 - uses : actions/checkout@v4
@@ -160,20 +179,24 @@ jobs:
160179161180 with :
162181 load-mode : strict
182+ path : benchmark
163183
164184 - name : Run Benchmark
165- run : ./benchmark/ scripts/run_single_benchmark.sh sqlite reads
185+ run : ./scripts/run_single_benchmark.sh sqlite reads
166186
167187 - name : Upload Results
168188 uses : actions/upload-artifact@v4
169189 if : success()
170190 with :
171191 name : sqlite-reads-results
172- path : benchmark/ BenchmarkDotNet.Artifacts/sqlite/reads
192+ path : BenchmarkDotNet.Artifacts/sqlite/reads
173193
174194 benchmark-sqlite-writes :
175195 name : SQLite Writes Benchmark
176196 runs-on : ubuntu-latest
197+ defaults :
198+ run :
199+ working-directory : ./benchmark
177200
178201 steps :
179202 - uses : actions/checkout@v4
@@ -187,21 +210,25 @@ jobs:
187210188211 with :
189212 load-mode : strict
213+ path : benchmark
190214
191215 - name : Run Benchmark
192- run : ./benchmark/ scripts/run_single_benchmark.sh sqlite writes
216+ run : ./scripts/run_single_benchmark.sh sqlite writes
193217
194218 - name : Upload Results
195219 uses : actions/upload-artifact@v4
196220 if : success()
197221 with :
198222 name : sqlite-writes-results
199- path : benchmark/ BenchmarkDotNet.Artifacts/sqlite/writes
223+ path : BenchmarkDotNet.Artifacts/sqlite/writes
200224
201225 push-results :
202226 name : Push Results
203227 runs-on : ubuntu-latest
204- if : always()
228+ defaults :
229+ run :
230+ working-directory : ./benchmark
231+ if : always() && github.event_name == 'release'
205232 needs : [
206233 benchmark-mysql-reads, benchmark-mysql-writes,
207234 benchmark-postgresql-reads, benchmark-postgresql-writes,
@@ -215,37 +242,40 @@ jobs:
215242 uses : actions/download-artifact@v4
216243 with :
217244 name : mysql-reads-results
218- path : benchmark/ BenchmarkDotNet.Artifacts/mysql/reads
245+ path : BenchmarkDotNet.Artifacts/mysql/reads
219246
220247 - name : Download MySQL Writes Results
221248 uses : actions/download-artifact@v4
222249 with :
223250 name : mysql-writes-results
224- path : benchmark/ BenchmarkDotNet.Artifacts/mysql/writes
251+ path : BenchmarkDotNet.Artifacts/mysql/writes
225252
226253 - name : Download PostgreSQL Reads Results
227254 uses : actions/download-artifact@v4
228255 with :
229256 name : postgresql-reads-results
230- path : benchmark/ BenchmarkDotNet.Artifacts/postgresql/reads
257+ path : BenchmarkDotNet.Artifacts/postgresql/reads
231258
232259 - name : Download PostgreSQL Writes Results
233260 uses : actions/download-artifact@v4
234261 with :
235262 name : postgresql-writes-results
236- path : benchmark/ BenchmarkDotNet.Artifacts/postgresql/writes
263+ path : BenchmarkDotNet.Artifacts/postgresql/writes
237264
238265 - name : Download SQLite Reads Results
239266 uses : actions/download-artifact@v4
240267 with :
241268 name : sqlite-reads-results
242- path : benchmark/ BenchmarkDotNet.Artifacts/sqlite/reads
269+ path : BenchmarkDotNet.Artifacts/sqlite/reads
243270
244271 - name : Download SQLite Writes Results
245272 uses : actions/download-artifact@v4
246273 with :
247274 name : sqlite-writes-results
248- path : benchmark/BenchmarkDotNet.Artifacts/sqlite/writes
275+ path : BenchmarkDotNet.Artifacts/sqlite/writes
276+
277+ - name : Update Wasm Plugin
278+ run : ./scripts/update_wasm_plugin.sh
249279
250280 - name : Create Pull Request
251281 uses : peter-evans/create-pull-request@v6
0 commit comments