Skip to content

Commit

Permalink
[CIBUILD] Update workflow trigger condition. (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackMoriarty authored Mar 10, 2022
1 parent 05f5fba commit b73e41b
Show file tree
Hide file tree
Showing 20 changed files with 60 additions and 20 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ubuntu18.04-py3.6-cibuild-build-wheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, cpu]
steps:
- name: Checkout Code
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ubuntu18.04-py3.6-cibuild-c-unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, cpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, cpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, cpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, cpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, cpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, cpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, cpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, cpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, cpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, gpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, gpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, gpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, gpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, gpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, gpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, gpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, gpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, gpu]
steps:
- name: Checkout Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- 'modelzoo/**'
- 'sparse_operation_kit/**'
- 'triton/**'
pull_request:
pull_request_review:
types: [submitted]
branches:
- main
paths-ignore:
Expand All @@ -25,6 +26,7 @@ env:

jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: [self-hosted, gpu]
steps:
- name: Checkout Code
Expand Down

0 comments on commit b73e41b

Please sign in to comment.