Skip to content

Commit c09a9f0

Browse files
cartmockersf
andauthored
Only run validation jobs in Merge Queues (#7937)
Co-authored-by: François <mockersf@gmail.com>
1 parent 6595086 commit c09a9f0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/validation-jobs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: validation jobs
22

33
on:
44
merge_group:
5+
pull_request:
56
push:
67
branches:
78
- staging
@@ -13,6 +14,7 @@ env:
1314

1415
jobs:
1516
build-and-install-on-iOS:
17+
if: ${{ github.event_name == 'merge_group' }}
1618
runs-on: macos-latest
1719
timeout-minutes: 30
1820
steps:
@@ -33,6 +35,7 @@ jobs:
3335
run: cd examples/mobile && make install
3436

3537
build-android:
38+
if: ${{ github.event_name == 'merge_group' }}
3639
runs-on: ubuntu-latest
3740
timeout-minutes: 30
3841
steps:
@@ -60,6 +63,7 @@ jobs:
6063
run: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME cargo apk build --package bevy_mobile_example
6164

6265
run-examples-on-windows-dx12:
66+
if: ${{ github.event_name == 'merge_group' }}
6367
runs-on: windows-latest
6468
timeout-minutes: 60
6569
steps:
@@ -94,6 +98,7 @@ jobs:
9498
done
9599
96100
run-examples-on-wasm:
101+
if: ${{ github.event_name == 'merge_group' }}
97102
runs-on: ubuntu-latest
98103
timeout-minutes: 60
99104
steps:
@@ -150,6 +155,7 @@ jobs:
150155
path: .github/start-wasm-example/screenshot-*.png
151156

152157
build-without-default-features:
158+
if: ${{ github.event_name == 'merge_group' }}
153159
timeout-minutes: 30
154160
strategy:
155161
matrix:

0 commit comments

Comments
 (0)