Skip to content

Commit 5965561

Browse files
committed
Revert
1 parent e42ef6c commit 5965561

File tree

578 files changed

+23554
-9198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

578 files changed

+23554
-9198
lines changed

.cargo/config_fast_builds renamed to .cargo/config_fast_builds.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,27 @@
55

66
[target.x86_64-unknown-linux-gnu]
77
linker = "clang"
8-
rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"]
8+
rustflags = [
9+
"-Clink-arg=-fuse-ld=lld", # Use LLD Linker
10+
"-Zshare-generics=y", # (Nightly) Make the current crate share its generic instantiations
11+
]
912

1013
# NOTE: you must install [Mach-O LLD Port](https://lld.llvm.org/MachO/index.html) on mac. you can easily do this by installing llvm which includes lld with the "brew" package manager:
1114
# `brew install llvm`
1215
[target.x86_64-apple-darwin]
1316
rustflags = [
14-
"-C",
15-
"link-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld64.lld",
16-
"-Zshare-generics=y",
17+
"-Clink-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld64.lld", # Use LLD Linker
18+
"-Zshare-generics=y", # (Nightly) Make the current crate share its generic instantiations
1719
]
1820

1921
[target.aarch64-apple-darwin]
2022
rustflags = [
21-
"-C",
22-
"link-arg=-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld",
23-
"-Zshare-generics=y",
23+
"-Clink-arg=-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld", # Use LLD Linker
24+
"-Zshare-generics=y", # (Nightly) Make the current crate share its generic instantiations
2425
]
2526

2627
[target.x86_64-pc-windows-msvc]
27-
linker = "rust-lld.exe"
28+
linker = "rust-lld.exe" # Use LLD Linker
2829
rustflags = ["-Zshare-generics=n"]
2930

3031
# Optional: Uncommenting the following improves compile times, but reduces the amount of debug info to 'line number tables only'

.github/contributing/engine_style_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Contributing
44

5-
For more advice on contributing to the engine, see the [relevant section](../../CONTRIBUTING.md#Contributing-your-own-ideas) of `CONTRIBUTING.md`.
5+
For more advice on contributing to the engine, see the [relevant section](../../CONTRIBUTING.md#Contributing-code) of `CONTRIBUTING.md`.
66

77
## General guidelines
88

.github/start-mobile-example/specs/screenshot.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
var assert = require('assert');
21
const percyScreenshot = require('@percy/appium-app');
32

43

.github/start-wasm-example/tests/wasm_example.spec.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { test, expect, Page } from '@playwright/test';
1+
import { test, expect } from '@playwright/test';
22

33
test.beforeEach(async ({ page }) => {
44
await page.goto('http://localhost:8000/');
@@ -7,19 +7,19 @@ test.beforeEach(async ({ page }) => {
77
const MAX_TIMEOUT_FOR_TEST = 300_000;
88

99
test.describe('WASM example', () => {
10-
test('Wait for success', async ({ page }, test_info) => {
10+
test('Wait for success', async ({ page }, testInfo) => {
1111
let start = new Date().getTime();
1212

1313
let found = false;
1414
while (new Date().getTime() - start < MAX_TIMEOUT_FOR_TEST) {
15-
let msg = await promise_with_timeout(100, on_console(page), "no log found");
15+
let msg = await promiseWithTimeout(100, onConsole(page), "no log found");
1616
if (msg.includes("no log found")) {
1717
continue;
1818
}
1919
console.log(msg);
2020
if (msg.includes("Test successful")) {
2121
let prefix = process.env.SCREENSHOT_PREFIX === undefined ? "screenshot" : process.env.SCREENSHOT_PREFIX;
22-
await page.screenshot({ path: `${prefix}-${test_info.project.name}.png`, fullPage: true });
22+
await page.screenshot({ path: `${prefix}-${testInfo.project.name}.png`, fullPage: true });
2323
found = true;
2424
break;
2525
}
@@ -30,20 +30,20 @@ test.describe('WASM example', () => {
3030

3131
});
3232

33-
function on_console(page) {
33+
function onConsole(page) {
3434
return new Promise(resolve => {
3535
page.on('console', msg => resolve(msg.text()));
3636
});
3737
}
3838

39-
async function promise_with_timeout(time_limit, task, failure_value) {
39+
async function promiseWithTimeout(timeLimit, task, failureValue) {
4040
let timeout;
41-
const timeout_promise = new Promise((resolve, reject) => {
41+
const timeoutPromise = new Promise((resolve, reject) => {
4242
timeout = setTimeout(() => {
43-
resolve(failure_value);
44-
}, time_limit);
43+
resolve(failureValue);
44+
}, timeLimit);
4545
});
46-
const response = await Promise.race([task, timeout_promise]);
46+
const response = await Promise.race([task, timeoutPromise]);
4747
if (timeout) {
4848
clearTimeout(timeout);
4949
}

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ jobs:
276276
- name: log failed task - missing update
277277
if: ${{ failure() && github.event_name == 'pull_request' && steps.missing-update.conclusion == 'failure' }}
278278
run: touch ./missing-examples/missing-update
279-
- uses: actions/upload-artifact@v2
279+
- uses: actions/upload-artifact@v4
280280
if: ${{ failure() && github.event_name == 'pull_request' }}
281281
with:
282282
name: missing-examples
@@ -310,7 +310,7 @@ jobs:
310310
- name: log failed task - missing update
311311
if: ${{ failure() && github.event_name == 'pull_request' && steps.missing-update.conclusion == 'failure' }}
312312
run: touch ./missing-features/missing-update
313-
- uses: actions/upload-artifact@v2
313+
- uses: actions/upload-artifact@v4
314314
if: ${{ failure() && github.event_name == 'pull_request' }}
315315
with:
316316
name: missing-features
@@ -348,7 +348,7 @@ jobs:
348348
run: |
349349
mkdir -p ./msrv
350350
echo ${{ github.event.number }} > ./msrv/NR
351-
- uses: actions/upload-artifact@v2
351+
- uses: actions/upload-artifact@v4
352352
if: ${{ failure() && github.event_name == 'pull_request' && steps.check.conclusion == 'failure' }}
353353
with:
354354
name: msrv

.github/workflows/daily.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120

121121
- name: Save screenshots
122122
if: ${{ always() }}
123-
uses: actions/upload-artifact@v3
123+
uses: actions/upload-artifact@v4
124124
with:
125125
name: screenshots-${{ matrix.device }}-${{ matrix.os_version }}
126126
path: .github/start-mobile-example/*.png

.github/workflows/dependencies.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,36 +29,11 @@ jobs:
2929
check-bans:
3030
runs-on: ubuntu-latest
3131
steps:
32-
# on main, prepare a new cargo tree output and cache it
33-
- name: On main, prepare new cargo tree cache
34-
if: github.ref == 'refs/heads/main'
35-
run: cargo tree --depth 3 > cargo-tree-from-main
36-
- name: On main, save the new cargo tree cache
37-
if: github.ref == 'refs/heads/main'
38-
uses: actions/cache/save@v3
39-
with:
40-
path: cargo-tree-from-main
41-
key: cargo-tree-from-main
42-
# on other branch, restore the cached cargo tree output
43-
- name: On PR, restore cargo tree cache
44-
uses: actions/cache/restore@v3
45-
if: github.ref != 'refs/heads/main'
46-
with:
47-
path: cargo-tree-from-main
48-
key: cargo-tree-from-main
4932
- uses: actions/checkout@v4
5033
- uses: dtolnay/rust-toolchain@stable
51-
# if not on main, check that the cargo tree output is unchanged
52-
- name: Check if the cargo tree changed from main
53-
if: github.ref != 'refs/heads/main'
54-
continue-on-error: true
55-
id: cargo-tree-changed
56-
run: diff cargo-tree-from-main <(cargo tree --depth 3)
5734
- name: Install cargo-deny
5835
run: cargo install cargo-deny
59-
# if the check was not a success (either skipped because on main or failed because of a change), run the check
6036
- name: Check for banned and duplicated dependencies
61-
if: steps.cargo-tree-changed.outcome != 'success'
6237
run: cargo deny check bans
6338

6439
check-licenses:

.github/workflows/docs.yml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,30 @@ on:
55
branches:
66
- 'main'
77

8+
# Allows running the action manually.
9+
workflow_dispatch:
10+
811
env:
912
CARGO_TERM_COLOR: always
1013
RUSTDOCFLAGS: --html-in-header header.html
1114

15+
# Sets the permissions to allow deploying to Github pages.
16+
permissions:
17+
contents: read
18+
pages: write
19+
id-token: write
20+
21+
# Only allow one deployment to run at a time, however it will not cancel in-progress runs.
22+
concurrency:
23+
group: "pages"
24+
cancel-in-progress: false
25+
1226
jobs:
1327
build-and-deploy:
1428
runs-on: ubuntu-latest
29+
environment:
30+
name: github-pages
31+
url: ${{ steps.deployment.outputs.page_url }}
1532
steps:
1633
- name: Checkout
1734
uses: actions/checkout@v4
@@ -37,19 +54,18 @@ jobs:
3754
# - A top level redirect to the bevy crate documentation
3855
# - A CNAME file for redirecting the docs domain to the API reference
3956
# - A robots.txt file to forbid any crawling of the site (to defer to the docs.rs site on search engines).
40-
# - A .nojekyll file to disable Jekyll GitHub Pages builds.
4157
- name: Finalize documentation
4258
run: |
4359
echo "<meta http-equiv=\"refresh\" content=\"0; url=bevy/index.html\">" > target/doc/index.html
4460
echo "dev-docs.bevyengine.org" > target/doc/CNAME
4561
echo "User-Agent: *\nDisallow: /" > target/doc/robots.txt
46-
touch target/doc/.nojekyll
62+
rm target/doc/.lock
4763
48-
- name: Deploy
49-
if: github.repository == 'bevyengine/bevy'
50-
uses: JamesIves/github-pages-deploy-action@v4
64+
- name: Upload site artifact
65+
uses: actions/upload-pages-artifact@v3
5166
with:
52-
branch: gh-pages
53-
folder: target/doc
54-
single-commit: true
55-
force: true
67+
path: target/doc
68+
69+
- name: Deploy to Github Pages
70+
id: deployment
71+
uses: actions/deploy-pages@v4

.github/workflows/validation-jobs.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ jobs:
7070
run: |
7171
sudo apt-get update;
7272
DEBIAN_FRONTEND=noninteractive sudo apt-get install --no-install-recommends -yq \
73-
libasound2-dev libudev-dev;
73+
libasound2-dev libudev-dev libxkbcommon-x11-0;
7474
- name: install xvfb, llvmpipe and lavapipe
7575
run: |
7676
sudo apt-get update -y -qq
77-
sudo add-apt-repository ppa:kisak/kisak-mesa -y
77+
sudo add-apt-repository ppa:kisak/turtle -y
7878
sudo apt-get update
7979
sudo apt install -y xvfb libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
8080
- uses: actions/checkout@v4
@@ -108,16 +108,16 @@ jobs:
108108
zip traces.zip trace*.json
109109
zip -r screenshots.zip screenshots-*
110110
- name: save traces
111-
uses: actions/upload-artifact@v3
111+
uses: actions/upload-artifact@v4
112112
with:
113113
name: example-traces.zip
114114
path: traces.zip
115115
- name: save screenshots
116-
uses: actions/upload-artifact@v3
116+
uses: actions/upload-artifact@v4
117117
with:
118118
name: screenshots.zip
119119
path: screenshots.zip
120-
- uses: actions/upload-artifact@v2
120+
- uses: actions/upload-artifact@v4
121121
if: ${{ failure() && github.event_name == 'pull_request' }}
122122
with:
123123
name: example-run
@@ -148,7 +148,7 @@ jobs:
148148
- name: install xvfb, llvmpipe and lavapipe
149149
run: |
150150
sudo apt-get update -y -qq
151-
sudo add-apt-repository ppa:kisak/kisak-mesa -y
151+
sudo add-apt-repository ppa:kisak/turtle -y
152152
sudo apt-get update
153153
sudo apt install -y xvfb libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
154154
@@ -175,7 +175,7 @@ jobs:
175175
xvfb-run cargo run -p build-wasm-example -- --browsers chromium --browsers firefox --frames 25 --test 2d_shapes lighting text_debug breakout
176176
177177
- name: Save screenshots
178-
uses: actions/upload-artifact@v3
178+
uses: actions/upload-artifact@v4
179179
with:
180180
name: screenshots
181181
path: .github/start-wasm-example/screenshot-*.png

0 commit comments

Comments
 (0)