Skip to content

Commit

Permalink
Merge branch 'master' into perf-test
Browse files Browse the repository at this point in the history
  • Loading branch information
BohuTANG committed Jun 2, 2021
2 parents 598b393 + b33cafd commit c684296
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/performance-tests-standalone.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
name: Performance(Standalone)
on:
pull_request:
types: [opened]
issue_comment:
types: [created]
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 @@ -44,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 @@ -60,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 c684296

Please sign in to comment.