Add a workflow for sending benchmark requests.
This commit is contained in:
20
.github/workflows/rapier-ci-bench.yml
vendored
Normal file
20
.github/workflows/rapier-ci-bench.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
name: Rapier CI bench
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
send-bench-message:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- shell: bash
|
||||||
|
env:
|
||||||
|
BENCHBOT_AMQP_USER: ${{ secrets.BENCHBOT_AMQP_USER }}
|
||||||
|
BENCHBOT_AMQP_PASS: ${{ secrets.BENCHBOT_AMQP_PASS }}
|
||||||
|
BENCHBOT_AMQP_VHOST: ${{ secrets.BENCHBOT_AMQP_VHOST }}
|
||||||
|
BENCHBOT_AMQP_HOST: ${{ secrets.BENCHBOT_AMQP_HOST }}
|
||||||
|
- name: Send 3D bench message
|
||||||
|
run: curl -u ${BENCHBOT_AMQP_USER}:${BENCHBOT_AMQP_PASS} \
|
||||||
|
-i -H "content-type:application/json" -X POST \
|
||||||
|
https://${BENCHBOT_AMQP_PASS}/api/exchanges/${BENCHBOT_AMQP_VHOST}//publish \
|
||||||
|
-d'{"properties":{},"routing_key":"benchmark","payload":"{ \"repository\":\"https://github.com/dimforge/rapier\", \"branch\":\"$GITHUB_REF\", \"commit\":\"$GITHUB_SHA\" }","payload_encoding":"string"}'
|
||||||
Reference in New Issue
Block a user