aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/rapier-ci-bench.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/rapier-ci-bench.yml b/.github/workflows/rapier-ci-bench.yml
new file mode 100644
index 0000000..2d2745d
--- /dev/null
+++ b/.github/workflows/rapier-ci-bench.yml
@@ -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"}' \ No newline at end of file