-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (33 loc) · 1.02 KB
/
demo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 checkout demo
git add demo
git commit -m "Automated report"
git push origin demo