Only run validation jobs in Merge Queues (#7937)
Co-authored-by: François <mockersf@gmail.com>
This commit is contained in:
parent
6595086922
commit
c09a9f0c73
6
.github/workflows/validation-jobs.yml
vendored
6
.github/workflows/validation-jobs.yml
vendored
@ -2,6 +2,7 @@ name: validation jobs
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
merge_group:
|
merge_group:
|
||||||
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- staging
|
- staging
|
||||||
@ -13,6 +14,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-install-on-iOS:
|
build-and-install-on-iOS:
|
||||||
|
if: ${{ github.event_name == 'merge_group' }}
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
@ -33,6 +35,7 @@ jobs:
|
|||||||
run: cd examples/mobile && make install
|
run: cd examples/mobile && make install
|
||||||
|
|
||||||
build-android:
|
build-android:
|
||||||
|
if: ${{ github.event_name == 'merge_group' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
@ -60,6 +63,7 @@ jobs:
|
|||||||
run: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME cargo apk build --package bevy_mobile_example
|
run: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME cargo apk build --package bevy_mobile_example
|
||||||
|
|
||||||
run-examples-on-windows-dx12:
|
run-examples-on-windows-dx12:
|
||||||
|
if: ${{ github.event_name == 'merge_group' }}
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
@ -94,6 +98,7 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
run-examples-on-wasm:
|
run-examples-on-wasm:
|
||||||
|
if: ${{ github.event_name == 'merge_group' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
@ -150,6 +155,7 @@ jobs:
|
|||||||
path: .github/start-wasm-example/screenshot-*.png
|
path: .github/start-wasm-example/screenshot-*.png
|
||||||
|
|
||||||
build-without-default-features:
|
build-without-default-features:
|
||||||
|
if: ${{ github.event_name == 'merge_group' }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
Loading…
Reference in New Issue
Block a user