Skip to content

adds mle, reduces wasm bin sizes by removing bevy cargo features #131

adds mle, reduces wasm bin sizes by removing bevy cargo features

adds mle, reduces wasm bin sizes by removing bevy cargo features #131

Workflow file for this run

on:
push:
branches: ["master"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: 🌊
uses: actions/checkout@v3
- name: 🌊
uses: shalzz/zola-deploy-action@v0.17.2
env:
BUILD_DIR: '.'
BUILD_ONLY: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target=wasm32-unknown-unknown --examples
- name: 🌊
run: cargo install -f wasm-bindgen-cli
- name: 🌊
run: |
for example in examples/*.rs; do

Check failure on line 43 in .github/workflows/website.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/website.yml

Invalid workflow file

You have an error in your yaml syntax on line 43
example_name=$(basename "$example" .rs)
echo "${example_name}"
wasm-bindgen "target/wasm32-unknown-unknown/release/examples/${example_name}.wasm" --out-dir static/wasm-bindgen --target web
done
- name: 🌊
uses: actions/configure-pages@v2
- name: 🌊
uses: actions/upload-pages-artifact@v1
with:
path: './public'
- name: 🌊
uses: actions/deploy-pages@v1