Skip to content

Commit

Permalink
Update performance-tests-standalone.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BohuTANG authored Jun 2, 2021
1 parent c5b9f1c commit b33cafd
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/performance-tests-standalone.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
name: Performance(Standalone)
on: [push, pull_request, issue_comment]
on:
issue_comment:
types: [created, edited, deleted]

env:
CARGO_TERM_COLOR: always

jobs:
build:
name: "Tests"
if: contains(github.event.comment.html_url, '/pull/') # check if the comments come from pull request, exclude those from issue.
runs-on: self-hosted
steps:
- uses: khan/pull-request-comment-trigger@master
id: check
with:
trigger: '/runperf'
reaction: rocket
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- uses: actions/checkout@v2
- name: dependency hack on self hosted machine
if: steps.check.outputs.triggered == 'true'
if: contains(github.event.comment.body, '/runperf')
run: |
sudo wget http://archive.ubuntu.com/ubuntu/pool/main/p/psmisc/psmisc_23.3-1_amd64.deb
sudo dpkg -i ./psmisc_23.3-1_amd64.deb
Expand All @@ -40,7 +35,7 @@ jobs:
- name: Install latest nightly
if: steps.check.outputs.triggered == 'true'
if: contains(github.event.comment.body, '/runperf')
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
Expand All @@ -56,12 +51,12 @@ jobs:
command: check

- name: Build native release
if: steps.check.outputs.triggered == 'true'
if: contains(github.event.comment.body, '/runperf')
run: |
bash ./scripts/ci/ci-native-release-build.sh
- name: Run Performance Tests with Standalone mode
if: steps.check.outputs.triggered == 'true'
if: contains(github.event.comment.body, '/runperf')
run: |
bash ./scripts/ci/ci-performance-tests-standalone.sh

0 comments on commit b33cafd

Please sign in to comment.