File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 70
70
env :
71
71
FEATURES : ${{ matrix.features }}
72
72
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER : aarch64-linux-gnu-gcc
73
+ cross_compile_wasm :
74
+ runs-on : ubuntu-latest
75
+ steps :
76
+ - name : Install node
77
+ run : |
78
+ sudo apt-get update
79
+ sudo apt-get install nodejs
80
+ node -v
81
+ - name : Install wasm-bindgen
82
+ run : >
83
+ curl -L "$WASMBINDGEN_UPSTREAM"
84
+ | tar xzf - --strip-components=1 wasm-bindgen-0.2.80-x86_64-unknown-linux-musl/wasm-bindgen-test-runner
85
+ && sudo mv wasm-bindgen-test-runner /usr/bin/wasm-bindgen-test-runner
86
+ env :
87
+ WASMBINDGEN_UPSTREAM : https://github.com/rustwasm/wasm-bindgen/releases/download/0.2.80/wasm-bindgen-0.2.80-x86_64-unknown-linux-musl.tar.gz
88
+ - name : Installing Rust toolchain
89
+ uses : actions-rs/toolchain@v1
90
+ with :
91
+ override : true
92
+ toolchain : stable
93
+ target : wasm32-unknown-unknown
94
+ - uses : actions/checkout@v2
95
+ - name : Test
96
+ run : cargo test -vv --target wasm32-unknown-unknown
97
+ env :
98
+ CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER : wasm-bindgen-test-runner
You can’t perform that action at this time.
0 commit comments