forked from bevyengine/bevy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cluster-light-probes
- Loading branch information
Showing
1,330 changed files
with
120,300 additions
and
49,206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
( | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
{ | ||
"MD013": false | ||
"MD013": false, | ||
"no-inline-html": { | ||
"allowed_elements": [ | ||
"details", | ||
"summary" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: CI - examples | ||
|
||
on: | ||
merge_group: | ||
pull_request_target: | ||
push: | ||
branches: | ||
- main | ||
- release-* | ||
|
||
# Unlike jobs in ci.yml, jobs in this workflow can access secrets. Their definitions are taken from the base branch of a PR, not from the PR itself. | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
# If nightly is breaking CI, modify this variable to target a specific nightly version. | ||
NIGHTLY_TOOLCHAIN: nightly | ||
|
||
concurrency: | ||
group: ${{github.workflow}}-${{github.ref}}-examples | ||
cancel-in-progress: ${{github.event_name == 'pull_request_target'}} | ||
|
||
jobs: | ||
run-examples-macos-metal: | ||
# Explicity use macOS 14 to take advantage of M1 chip. | ||
runs-on: macos-14 | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Disable audio | ||
# Disable audio through a patch. on github m1 runners, audio timeouts after 15 minutes | ||
run: git apply --ignore-whitespace tools/example-showcase/disable-audio.patch | ||
- name: Build bevy | ||
# this uses the same command as when running the example to ensure build is reused | ||
run: | | ||
TRACE_CHROME=trace-alien_cake_addict.json CI_TESTING_CONFIG=.github/example-run/alien_cake_addict.ron cargo build --example alien_cake_addict --features "bevy_ci_testing,trace,trace_chrome" | ||
- name: Run examples | ||
run: | | ||
for example in .github/example-run/*.ron; do | ||
example_name=`basename $example .ron` | ||
echo -n $example_name > last_example_run | ||
echo "running $example_name - "`date` | ||
time TRACE_CHROME=trace-$example_name.json CI_TESTING_CONFIG=$example cargo run --example $example_name --features "bevy_ci_testing,trace,trace_chrome" | ||
sleep 10 | ||
if [ `find ./ -maxdepth 1 -name 'screenshot-*.png' -print -quit` ]; then | ||
mkdir screenshots-$example_name | ||
mv screenshot-*.png screenshots-$example_name/ | ||
fi | ||
done | ||
mkdir traces && mv trace*.json traces/ | ||
mkdir screenshots && mv screenshots-* screenshots/ | ||
- name: save traces | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: example-traces-macos | ||
path: traces | ||
- name: save screenshots | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: screenshots-macos | ||
path: screenshots | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{ failure() && github.event_name == 'pull_request' }} | ||
with: | ||
name: example-run-macos | ||
path: example-run/ | ||
|
||
compare-macos-screenshots: | ||
name: Compare macOS screenshots | ||
needs: [run-examples-macos-metal] | ||
uses: ./.github/workflows/send-screenshots-to-pixeleagle.yml | ||
with: | ||
commit: ${{ github.sha }} | ||
branch: ${{ github.ref_name }} | ||
artifact: screenshots-macos | ||
os: macos | ||
secrets: inherit |
Oops, something went wrong.