Skip to content

Commit

Permalink
(hopefully) final fix
Browse files Browse the repository at this point in the history
  • Loading branch information
idanarye committed Dec 1, 2024
1 parent 297105d commit 295388e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,16 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |-
cargo doc --no-deps --verbose --all-features --features bevy/webgl2,bevy/x11 &&
echo "<meta http-equiv=refresh content=0;url=bevy_yoleck/index.html>" > target/doc/index.html &&
echo "<meta http-equiv=refresh content=0;url=bevy_yoleck/index.html>" > target/doc/index.html
required_features=$(
(
cargo metadata --no-deps --format-version 1 \
| jq '.packages[].targets[] | select(.kind == ["example"]) | .["required-features"][]' -r
echo bevy/webgl2
echo bevy/x11
) | tr '\n' ' '
) cargo build --examples --release --features "$required_features" --target wasm32-unknown-unknown &&
)
cargo build --examples --release --features "$required_features" --target wasm32-unknown-unknown
for demowasm in $(cd target/wasm32-unknown-unknown/release/examples; ls *.wasm | grep -v -); do
wasm-bindgen target/wasm32-unknown-unknown/release/examples/$demowasm --out-dir target/doc/demos/ --target web
cat > target/doc/demos/${demowasm%.*}.html <<EOF
Expand All @@ -149,7 +150,7 @@ jobs:
</body>
</html>
EOF
done &&
done
cp -R assets/ target/doc/demos/
- name: Add read permissions
run: |-
Expand Down

0 comments on commit 295388e

Please sign in to comment.