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

Examples update #720

Merged
merged 7 commits into from
Jul 19, 2023
Merged

Examples update #720

merged 7 commits into from
Jul 19, 2023

Conversation

mockersf
Copy link
Member

@mockersf mockersf commented Jul 16, 2023

This PR:

  • adds a new workflow to trigger manually that will build all examples in CI and upload them in cloudflare
  • update the WebGL2 example pages to be like the WebGPU one

It needs a new secret for the cloudflare token. @cart I can either give you a token or show you how to setup the account. That secret is not needed to merge this PR, it will only be used when a new version of the examples is built

Building the examples is not done at each time the website is built anymore, but on demand. That should be triggered once for every new Bevy version.

Examples are built in a matrix job by batches of 50 examples. There are three batches done currently, so we're OK until we reach 150 examples, at which point a new batch will need to be added.

All the steps building are using the examples from latest, but the tooling from main. This is to be able to use the changes from bevyengine/bevy#9168. CI won't work before it's merged.

This is what this workflow execution looks like:
Screenshot 2023-07-16 at 21 21 24

Why running on macos? Because GitHub runners on macos have more resources than on windows/linux, and it's significantly faster (around x2)

@cart
Copy link
Member

cart commented Jul 17, 2023

Just added the token under the CLOUDFLARE_PAGES variable!

@mockersf
Copy link
Member Author

the workflow has been merged in #721 and executed: https://github.com/bevyengine/bevy-website/actions/runs/5586192733

I updated this PR to use the new domains, should be good to go 👍

@cart cart added this pull request to the merge queue Jul 19, 2023
Merged via the queue into bevyengine:main with commit 3efcc43 Jul 19, 2023
6 checks passed
github-merge-queue bot pushed a commit to bevyengine/bevy that referenced this pull request Aug 9, 2023
# Objective

This example stopped being built for the website after the
example-building was reworked in
(bevyengine/bevy-website#720 + #9168).

This seems to have just been a mistake when defining this particular
example's metadata.

See bevyengine/bevy-website#726

## Solution

Update its metadata to indicate that it works with wasm.
cart pushed a commit to bevyengine/bevy that referenced this pull request Aug 10, 2023
# Objective

This example stopped being built for the website after the
example-building was reworked in
(bevyengine/bevy-website#720 + #9168).

This seems to have just been a mistake when defining this particular
example's metadata.

See bevyengine/bevy-website#726

## Solution

Update its metadata to indicate that it works with wasm.
@mockersf mockersf mentioned this pull request Mar 8, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants