Skip to content

Commit 1d4ed20

Browse files
committed
Add conditions to all CI jobs to only run on main repo by default
This is a follow-up to gh-4271. At the moment, when a contributor pushes the latest `develop` to their own branch to bring their own fork in sync with `main`, or if they push another branch, this triggers 30 CI jobs to run. Most will complete silently and only burn CPU time unnecessarily. If there's a failure, this may result in unexpected failure notifications. And the AWS Graviton3 run won't complete at all and time out, since the Cirun hook will only work when triggered from the main repo.
1 parent 273f4e8 commit 1d4ed20

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

.github/workflows/arm64_graviton.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ permissions:
77

88
jobs:
99
build:
10+
if: "github.repository == 'OpenMathLib/OpenBLAS'"
1011
runs-on: "cirun-aws-runner-graviton--${{ github.run_id }}"
1112

1213
strategy:

.github/workflows/c910v.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ permissions:
77

88
jobs:
99
TEST:
10+
if: "github.repository == 'OpenMathLib/OpenBLAS'"
1011
runs-on: ubuntu-latest
1112
env:
1213
xuetie_toolchain: https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource//1663142514282

.github/workflows/dynamic_arch.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ permissions:
77

88
jobs:
99
build:
10+
if: "github.repository == 'OpenMathLib/OpenBLAS'"
1011
runs-on: ${{ matrix.os }}
1112

1213
strategy:
@@ -146,6 +147,7 @@ jobs:
146147
147148
148149
msys2:
150+
if: "github.repository == 'OpenMathLib/OpenBLAS'"
149151
runs-on: windows-latest
150152

151153
strategy:
@@ -312,6 +314,7 @@ jobs:
312314
313315
314316
cross_build:
317+
if: "github.repository == 'OpenMathLib/OpenBLAS'"
315318
runs-on: ubuntu-22.04
316319

317320
strategy:

.github/workflows/loongarch64.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
TEST:
7+
if: "github.repository == 'OpenMathLib/OpenBLAS'"
78
runs-on: ubuntu-latest
89
strategy:
910
fail-fast: false

.github/workflows/mips64.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ permissions:
77

88
jobs:
99
TEST:
10+
if: "github.repository == 'OpenMathLib/OpenBLAS'"
1011
runs-on: ubuntu-latest
1112
strategy:
1213
fail-fast: false

0 commit comments

Comments
 (0)