Skip to content

Commit

Permalink
Only run scheduled build and test CI on main repo (#1689)
Browse files Browse the repository at this point in the history
Currently this CI runs in all forked repos, which provides little added
benefit to the runs that occur in main, and when this job fails, it ends
up doubling the amount of notifications.
  • Loading branch information
GleasonK authored Jul 18, 2023
1 parent aa6da81 commit bf4ff66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/buildAndTestCMake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ concurrency:

jobs:
cmake-build:
# Only run scheduled CI on main repo
if: (github.repository == 'openxla/stablehlo' || github.event_name != 'schedule')
name: "cmake-build ${{ github.event_name == 'schedule' && '(llvm-project@HEAD)' || ''}}"
env:
LLVM_PROJECT_DIR: "llvm-project"
Expand Down

0 comments on commit bf4ff66

Please sign in to comment.