Update #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Demo | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: write | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use nightly Rust | |
run: rustup default nightly | |
- name: Add wasm32 target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Install wasm-bindgen CLI | |
run: cargo install wasm-bindgen-cli | |
- name: Build demo | |
run: cargo build -p as3_parser_demo --release --target wasm32-unknown-unknown | |
- name: Update demo/dist | |
run: wasm-bindgen --target web --out-dir demo/dist target/wasm32-unknown-unknown/release/as3_parser_demo.wasm | |
- name: Git commit report | |
run: | | |
git config --global user.name 'hydroper' | |
git config --global user.email '[email protected]' | |
git switch -C demo | |
git rm --cached -r . | |
git add demo | |
git rm --cached -r demo/src | |
git rm --cached demo/Cargo.toml | |
git commit -m "Automated report" | |
git push origin -f demo |