Skip to content

Commit 44dd0f2

Browse files
committed
.github: Don't run second stage on pull_request
Only run the second build stage on tracked branches. The second build stage generate artifacts intended to be deployed on hardware and include all drivers, hence the longer build times. Signed-off-by: Jorge Marques <[email protected]>
1 parent 3ce5f0b commit 44dd0f2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/top-level.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ jobs:
9191
assert_labels
9292
conditional_xlnx:
9393
if: |
94-
(github.event_name == 'push' && startsWith(github.ref_name, 'ci/') || github.ref_name == 'main') ||
95-
(github.event_name == 'pull_request' && startsWith(github.base_ref, 'ci/') || github.ref_name == 'main')
94+
(github.event_name == 'push' && startsWith(github.ref_name, 'ci/') || github.ref_name == 'main')
9695
runs-on: [self-hosted, v1]
9796
needs: [assert_checks]
9897
steps:
@@ -206,8 +205,7 @@ jobs:
206205
assert_labels
207206
conditional_rpi:
208207
if: |
209-
(github.event_name == 'push' && startsWith(github.ref_name, 'rpi-')) ||
210-
(github.event_name == 'pull_request' && startsWith(github.base_ref, 'rpi-'))
208+
(github.event_name == 'push' && startsWith(github.ref_name, 'rpi-'))
211209
runs-on: [self-hosted, v1]
212210
needs: [assert_checks]
213211
steps:

0 commit comments

Comments
 (0)