Skip to content

Update mio- remove vulnerability #71

Update mio- remove vulnerability

Update mio- remove vulnerability #71

Workflow file for this run

name: WebGL build
on:
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
web_build:
runs-on: ubuntu-latest
timeout-minutes: 30
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
bevy_forge/target/
key: ${{ github.ref || github.run_id }}
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Install wasm bindgen
uses: baptiste0928/cargo-install@v2
with:
crate: wasm-bindgen-cli
- name: Build
working-directory: ./bevy_forge
run: cargo build --release --target wasm32-unknown-unknown && wasm-bindgen --out-dir ./out/ --target web ../target/wasm32-unknown-unknown/release/bevy_forge.wasm
- name: Copy
working-directory: ./bevy_forge
run: cp -R assets out/ && cp wasm/* out/ && ls -R out
- 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: ./bevy_forge/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