Skip to content

Commit

Permalink
[CI] Add benchmark-all tag check, always benchmark all on push
Browse files Browse the repository at this point in the history
  • Loading branch information
rengolin committed Jan 28, 2025
1 parent 79c6a32 commit 9ac69b9
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/tpp-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ env:
jobs:
Check_LLVM:
if: ${{ github.event_name }} == "push" || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }})
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }}) || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark-all' }})
uses: ./.github/workflows/tpp-llvm.yml
secrets: inherit

TPP-MLIR-EMR-BASE:
runs-on: pcl-tiergarten
if: ${{ github.event_name }} == "push" || \
${{ inputs.RUN_EMR_BENCH }} == 1 || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }})
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }}) || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark-all' }})
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
Expand All @@ -48,7 +50,8 @@ jobs:
runs-on: pcl-tiergarten
if: ${{ github.event_name }} == "push" || \
${{ inputs.RUN_EMR_BENCH }} == 1 || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }})
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }}) || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark-all' }})
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
Expand All @@ -60,7 +63,9 @@ jobs:
TPP-MLIR-ZEN-BASE:
runs-on: pcl-tiergarten
if: inputs.RUN_ZEN_BENCH == 1
if: ${{ github.event_name }} == "push" || \
${{ inputs.RUN_ZEN_BENCH }} == 1 || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark-all' }})
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
Expand All @@ -72,7 +77,9 @@ jobs:
TPP-MLIR-ZEN-OMP:
runs-on: pcl-tiergarten
if: inputs.RUN_ZEN_BENCH == 1
if: ${{ github.event_name }} == "push" || \
${{ inputs.RUN_ZEN_BENCH }} == 1 || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark-all' }})
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
Expand All @@ -84,7 +91,9 @@ jobs:
TPP-MLIR-CLX-BASE:
runs-on: pcl-tiergarten
if: inputs.RUN_CLX_BENCH == 1
if: ${{ github.event_name }} == "push" || \
${{ inputs.RUN_CLX_BENCH }} == 1 || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark-all' }})
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
Expand All @@ -96,7 +105,9 @@ jobs:
TPP-MLIR-CLX-OMP:
runs-on: pcl-tiergarten
if: inputs.RUN_CLX_BENCH == 1
if: ${{ github.event_name }} == "push" || \
${{ inputs.RUN_CLX_BENCH }} == 1 || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark-all' }})
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 9ac69b9

Please sign in to comment.