File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - main
77
8+ concurrency :
9+ group : ${{ github.workflow }}-${{ github.ref }}
10+ cancel-in-progress : true
11+
812jobs :
913 build-and-deploy :
1014 runs-on : ubuntu-latest
@@ -16,22 +20,19 @@ jobs:
1620 - uses : dtolnay/rust-toolchain@stable
1721 with :
1822 targets : wasm32-unknown-unknown
19- - name : install wasm-bindgen-cli
20- run : |
21- cargo install wasm-bindgen-cli
2223
2324 - name : Install wasm-pack
2425 run : |
25- curl https://drager.github.io/wasm-pack/installer/init.sh -sSf | sh
26+ curl https://drager.github.io/wasm-pack/installer/init.sh -sSf | bash
27+ # cargo install wasm-pack
2628
2729 - name : Build WASM
2830 run : wasm-pack build --target web
2931
3032 - name : Deploy to gh-pages
31- uses : peaceiris/actions-gh-pages@v6
33+ uses : peaceiris/actions-gh-pages@v4
3234 with :
3335 github_token : ${{ secrets.GITHUB_TOKEN }}
34- publish_branch : gh-pages
3536 publish_dir : ./pkg
3637 keep_files : false
3738 force_orphan : true
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ wasm-bindgen = "0.2"
2222webgpu = [" bevy/webgpu" ]
2323webgl2 = [" bevy/webgl2" ]
2424
25- # [lib]
26- # # need both, cdylib for wasm, rlib for main.rs
27- # crate-type = ["cdylib", "rlib"]
25+ [lib ]
26+ # need both, cdylib for wasm, rlib for main.rs
27+ crate-type = [" cdylib" , " rlib" ]
2828
2929# optimize for smaller WASM binary size
3030[profile .release ]
You can’t perform that action at this time.
0 commit comments