Skip to content

Fix indentation for wasm-bindgen-action step #4

Fix indentation for wasm-bindgen-action step

Fix indentation for wasm-bindgen-action step #4

Workflow file for this run

name: build
on:
push:
branches:
- 'main'
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ github.ref || github.run_id }}
- uses: dtolnay/rust-toolchain@stable
- uses: jetli/[email protected]
with:
version: 'latest'
- name: Install wasm target
run: rustup target install wasm32-unknown-unknown
- name: Build
run: cargo build --release --target wasm32-unknown-unknown
- name: wasm-bindgen:

Check failure on line 34 in .github/workflows/rust.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/rust.yml

Invalid workflow file

You have an error in your yaml syntax on line 34
run: wasm-bindgen --no-typescript --out-dir ./out/ --target web ./target/wasm32-unknown-unknown/release/bevy_wasm_ci_example.wasm --out-name "tabletop"
- name: wasm-strip
run: wasm-strip ./out/tabletop_bg.wasm
- name: wasm-opt
run: wasm-opt -Oz --enable-bulk-memory --enable-nontrapping-float-to-int --enable-reference-types -o ./out/tabletop_bg.wasm ./out/tabletop_bg.wasm
- name: gzip
run: gzip -f ./out/tabletop_bg.wasm
- name: Copy
run: cp -R assets out/ && cp www/index.html out/index.html
- name: Push
uses: s0/git-publish-subdir-action@develop
env:
SQUASH_HISTORY: true
REPO: self
BRANCH: gh-pages # The branch name where you want to push the assets
FOLDER: out # The directory where your assets are generated
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token
MESSAGE: "Build: ({sha}) {msg}" # The commit message