Skip to content

add the assert directive #36

add the assert directive

add the assert directive #36

Workflow file for this run

name: Build GitHub Pages
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
with:
fetch-depth: 0
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
profile: minimal
override: true
- run: git branch -D ghpages
continue-on-error: true
- run: git checkout -b ghpages
- run: rm .gitignore
- run: mv .gitignore.ghpages .gitignore
- run: cargo build --lib --target wasm32-unknown-unknown --release
- run: mv ./target/wasm32-unknown-unknown/release/customasm.wasm ./web/customasm.wasm
- run: git config user.name github-actions
- run: git config user.email [email protected]
- run: git add -A
- run: git commit -m "build GitHub Pages"
- run: git push -f origin ghpages