aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/rapier-ci-bench.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/rapier-ci-bench.yml')
-rw-r--r--.github/workflows/rapier-ci-bench.yml29
1 files changed, 29 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..89ed247
--- /dev/null
+++ b/.github/workflows/rapier-ci-bench.yml
@@ -0,0 +1,29 @@
+name: Rapier CI bench
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+ workflow_dispatch:
+
+jobs:
+ send-bench-message:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Get the latest commit on PR
+ id: get-latest-commit
+ uses: ActionsRML/get-PR-latest-commit@v1
+ - name: Send 3D bench message
+ 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 }}
+ BENCHBOT_TARGET_REPO: ${{ github.repository }}
+ BENCHBOT_TARGET_COMMIT: ${{ steps.get-latest-commit.outputs.latest_commit_sha }}
+ run: curl -u $BENCHBOT_AMQP_USER:$BENCHBOT_AMQP_PASS
+ -i -H "content-type:application/json" -X POST
+ https://$BENCHBOT_AMQP_HOST/api/exchanges/$BENCHBOT_AMQP_VHOST//publish
+ -d'{"properties":{},"routing_key":"benchmark","payload":"{ \"repository\":\"https://github.com/'$BENCHBOT_TARGET_REPO'\", \"branch\":\"'$GITHUB_REF'\", \"commit\":\"'$BENCHBOT_TARGET_COMMIT'\" }","payload_encoding":"string"}' \ No newline at end of file