File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,56 @@ jobs:
202202
203203 steps : *make-steps
204204
205+ # Separated from `make` job to avoid making it a required status check
206+ ruby-bench :
207+ strategy :
208+ matrix :
209+ include :
210+ # Using the same setup as ZJIT jobs
211+ - bench_opts : ' --warmup=1 --bench=1'
212+
213+ runs-on : ubuntu-24.04
214+
215+ if : >-
216+ ${{!(false
217+ || contains(github.event.head_commit.message, '[DOC]')
218+ || contains(github.event.pull_request.title, '[DOC]')
219+ || contains(github.event.pull_request.labels.*.name, 'Documentation')
220+ || (github.event_name == 'push' && github.event.pull_request.user.login == 'dependabot[bot]')
221+ )}}
222+
223+ steps :
224+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
225+
226+ - uses : ./.github/actions/setup/ubuntu
227+
228+ - uses : ./.github/actions/setup/directories
229+ with :
230+ srcdir : src
231+ builddir : build
232+ makeup : true
233+
234+ - name : Run configure
235+ run : ../src/configure -C --disable-install-doc --prefix="$(pwd)/install"
236+
237+ - run : make install
238+
239+ - name : Checkout ruby-bench
240+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
241+ with :
242+ repository : ruby/ruby-bench
243+ path : ruby-bench
244+
245+ - name : Run ruby-bench
246+ run : ruby run_benchmarks.rb -e "ruby::../build/install/bin/ruby" ${{ matrix.bench_opts }}
247+ working-directory : ruby-bench
248+
249+ - uses : ./.github/actions/slack
250+ with :
251+ label : ruby-bench ${{ matrix.bench_opts }} ${{ matrix.ruby_opts }}
252+ SLACK_WEBHOOK_URL : ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
253+ if : ${{ failure() }}
254+
205255 result :
206256 if : ${{ always() }}
207257 name : ${{ github.workflow }} result
You can’t perform that action at this time.
0 commit comments