aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2021-01-22 16:10:24 +0100
committerCrozet Sébastien <developer@crozet.re>2021-01-22 16:10:24 +0100
commitcf52e01308cefcce71b9914c539641cb7530b22c (patch)
tree8e12a108d040d2b287957bec2b611c569b530bc7 /.github/workflows
parent800b35b103c60a3f13dffdfe1c20561074041cea (diff)
parente6fc8f67faf3e37afe38d683cbd930d457f289be (diff)
downloadrapier-cf52e01308cefcce71b9914c539641cb7530b22c.tar.gz
rapier-cf52e01308cefcce71b9914c539641cb7530b22c.tar.bz2
rapier-cf52e01308cefcce71b9914c539641cb7530b22c.zip
Merge branch 'master' into split_geom
# Conflicts: # examples2d/sensor2.rs # examples3d/sensor3.rs # src/dynamics/integration_parameters.rs # src/dynamics/solver/parallel_island_solver.rs # src/dynamics/solver/velocity_constraint.rs # src/dynamics/solver/velocity_ground_constraint.rs # src_testbed/nphysics_backend.rs # src_testbed/physx_backend.rs # src_testbed/testbed.rs
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/rapier-ci-bench.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/rapier-ci-bench.yml b/.github/workflows/rapier-ci-bench.yml
index aa6e6ca..29653e8 100644
--- a/.github/workflows/rapier-ci-bench.yml
+++ b/.github/workflows/rapier-ci-bench.yml
@@ -3,7 +3,7 @@ name: Rapier CI bench
on:
push:
branches: [ master ]
- pull_request:
+ pull_request_target:
branches: [ master ]
workflow_dispatch:
@@ -14,21 +14,23 @@ jobs:
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_REPO: ${{ github.event.pull_request.head.repo.clone_url }}
BENCHBOT_TARGET_COMMIT: ${{ github.event.pull_request.head.sha }}
BENCHBOT_SHA: ${{ github.sha }}
- BENCHBOT_HEAD_REF: ${{github.head_ref}}
+ BENCHBOT_HEAD_REF: ${{ github.head_ref }}
BENCHBOT_OTHER_BACKENDS: false
runs-on: ubuntu-latest
steps:
- - name: Find commit SHA
- if: github.ref == 'refs/heads/master'
+ - name: Set env on master
+ if: github.head_ref == ''
run: |
echo "BENCHBOT_TARGET_COMMIT=$BENCHBOT_SHA" >> $GITHUB_ENV
+ echo "BENCHBOT_TARGET_REPO=https://github.com/dimforge/rapier" >> $GITHUB_ENV
+ echo "BENCHBOT_HEAD_REF=master" >> $GITHUB_ENV
echo "BENCHBOT_OTHER_BACKENDS=true" >> $GITHUB_ENV
- name: Send 3D bench message
shell: bash
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'\", \"other_backends\":'$BENCHBOT_OTHER_BACKENDS' }","payload_encoding":"string"}' \ No newline at end of file
+ -d'{"properties":{},"routing_key":"benchmark","payload":"{ \"repository\":\"'$BENCHBOT_TARGET_REPO'\", \"branch\":\"'$BENCHBOT_HEAD_REF'\", \"commit\":\"'$BENCHBOT_TARGET_COMMIT'\", \"other_backends\":'$BENCHBOT_OTHER_BACKENDS' }","payload_encoding":"string"}' \ No newline at end of file