Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only run validation jobs in Merge Queues #7937

Merged
merged 2 commits into from
Mar 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/validation-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: validation jobs

on:
merge_group:
pull_request:
push:
branches:
- staging
Expand All @@ -13,6 +14,7 @@ env:

jobs:
build-and-install-on-iOS:
if: ${{ github.event_name == 'merge_group' }}
runs-on: macos-latest
timeout-minutes: 30
steps:
Expand All @@ -33,6 +35,7 @@ jobs:
run: cd examples/mobile && make install

build-android:
if: ${{ github.event_name == 'merge_group' }}
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
Expand Down Expand Up @@ -60,6 +63,7 @@ jobs:
run: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME cargo apk build --package bevy_mobile_example

run-examples-on-windows-dx12:
if: ${{ github.event_name == 'merge_group' }}
runs-on: windows-latest
timeout-minutes: 60
steps:
Expand Down Expand Up @@ -94,6 +98,7 @@ jobs:
done

run-examples-on-wasm:
if: ${{ github.event_name == 'merge_group' }}
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
Expand Down Expand Up @@ -150,6 +155,7 @@ jobs:
path: .github/start-wasm-example/screenshot-*.png

build-without-default-features:
if: ${{ github.event_name == 'merge_group' }}
timeout-minutes: 30
strategy:
matrix:
Expand Down