Skip to content

Commit

Permalink
Yet another CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
idanarye committed Dec 1, 2024
1 parent 3994b4f commit 87a8fe4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,15 @@ jobs:
GITHUB_REPO: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |-
cargo doc --verbose --all-features &&
cargo doc --verbose --all-features --feature bevy/webgl2 &&
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
) | 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 Down

0 comments on commit 87a8fe4

Please sign in to comment.