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

ci: change web demo to drag_n_drop #113

Merged
merged 3 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from 2 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
14 changes: 7 additions & 7 deletions .github/workflows/web-demo.yml
RobertBrewitz marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@ jobs:
- name: install wasm-bindgen
uses: jetli/[email protected]
with:
version: 'latest'
version: "latest"

- name: build (wasm)
run: cargo build -p demo --release --target wasm32-unknown-unknown
run: cargo build -p drag_n_drop --release --target wasm32-unknown-unknown

- name: package wasm
run: |
mkdir public
wasm-bindgen --target web --out-dir public target/wasm32-unknown-unknown/release/demo.wasm --no-typescript
wasm-bindgen --target web --out-dir public target/wasm32-unknown-unknown/release/drag_n_drop.wasm --no-typescript
cat << EOF > public/index.html
<html>
<title>bevy_vello Web Demo</title>
RobertBrewitz marked this conversation as resolved.
Show resolved Hide resolved
<meta content=no-cache http-equiv=Cache-control>
<meta content=-1 http-equiv=Expires>
<script type=module>import initSync from"/bevy_vello/demo.js";initSync(`/bevy_vello/demo_bg.wasm`);</script>
<link as=fetch crossorigin href=/bevy_vello/demo_bg.wasm rel=preload type=application/wasm>
<link crossorigin href=/bevy_vello/demo.js rel=modulepreload>
<script type=module>import initSync from"/bevy_vello/drag_n_drop.js";initSync(`/bevy_vello/drag_n_drop_bg.wasm`);</script>
<link as=fetch crossorigin href=/bevy_vello/drag_n_drop_bg.wasm rel=preload type=application/wasm>
<link crossorigin href=/bevy_vello/drag_n_drop.js rel=modulepreload>
</head>
<body>
<style>
Expand All @@ -61,7 +61,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './public'
path: "./public"

- name: Deploy to GitHub Pages
id: deployment
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

`bevy_vello` is a cross-platform, 2D compute-centric vector graphics rendering library for Bevy. There is default support for rendering text and scenes, with additional opt-in features for SVG and Lottie.

Quickstart to run the demo:
Quickstart to run an example:

```shell
cargo run -p demo
cargo run -p <example name>
```

![Alt text](image.png)
Expand Down Expand Up @@ -50,7 +50,7 @@ cargo run -p demo
### Cross platform (Bevy)

```shell
cargo run -p <demo name>
cargo run -p <example name>
```

### Web platform
Expand Down
Loading