File tree 5 files changed +6
-11
lines changed
5 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 17
17
- name : Install Rust
18
18
uses : actions-rs/toolchain@v1
19
19
with :
20
- toolchain : nightly
20
+ toolchain : stable
21
21
target : wasm32-unknown-unknown
22
22
profile : minimal
23
23
override : true
29
29
- run : rm .gitignore
30
30
- run : mv .gitignore.ghpages .gitignore
31
31
- run : cargo build --lib --target wasm32-unknown-unknown --release
32
- - run : cargo install wasm-gc
33
- - run : wasm-gc ./target/wasm32-unknown-unknown/release/customasm.wasm -o ./target/wasm32-unknown-unknown/release/customasm.gc.wasm
34
- - run : mv ./target/wasm32-unknown-unknown/release/customasm.gc.wasm ./web/customasm.gc.wasm
32
+ - run : mv ./target/wasm32-unknown-unknown/release/customasm.wasm ./web/customasm.wasm
35
33
- run : git config user.name github-actions
36
34
- run : git config user.email github-actions@github.com
37
35
- run : git add -A
Original file line number Diff line number Diff line change 6
6
/test.asm
7
7
/test_output_mismatch
8
8
9
- /web /customasm.gc. wasm
9
+ /web /customasm.wasm
Original file line number Diff line number Diff line change 1
1
# Build wasm binary
2
2
cargo build -- lib -- target wasm32- unknown- unknown -- release
3
3
4
- # Reduce binary size
5
- wasm- gc " ./target/wasm32-unknown-unknown/release/customasm.wasm" - o " ./target/wasm32-unknown-unknown/release/customasm.gc.wasm"
6
-
7
4
# Copy to web folder
8
- Copy-Item - Path " ./target/wasm32-unknown-unknown/release/customasm.gc. wasm" - Destination " ./web/customasm.gc .wasm"
5
+ Copy-Item - Path " ./target/wasm32-unknown-unknown/release/customasm.wasm" - Destination " ./web/customasm.wasm"
9
6
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ pub unsafe extern fn wasm_assemble(
37
37
None =>
38
38
{
39
39
let mut err = Vec :: < u8 > :: new ( ) ;
40
- report. print_all ( & mut err, & fileserver) ;
40
+ report. print_all ( & mut err, & fileserver, true ) ;
41
41
return wasm_string_new_with (
42
42
String :: from_utf8 ( err) . unwrap ( ) ) ;
43
43
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ function main()
12
12
window . onkeydown = onKeyDown
13
13
window . onbeforeunload = onBeforeUnload
14
14
15
- fetch ( "customasm.gc. wasm" )
15
+ fetch ( "customasm.wasm" )
16
16
. then ( r => r . arrayBuffer ( ) )
17
17
. then ( r => WebAssembly . instantiate ( r ) )
18
18
. then ( wasm =>
You can’t perform that action at this time.
0 commit comments