File tree 3 files changed +20
-17
lines changed
3 files changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -29,21 +29,29 @@ jobs:
29
29
DO_BENCH : true
30
30
run : ./contrib/test.sh
31
31
32
- wasm_pack :
32
+ wasm :
33
33
name : Stable - Docs / WebAssembly Build
34
- runs-on : ubuntu-latest
35
34
strategy :
36
35
matrix :
37
- rust :
38
- - stable
36
+ target : [ x86_64-unknown-linux-gnu, x86_64-apple-darwin ]
37
+ include :
38
+ - target : x86_64-unknown-linux-gnu
39
+ os : ubuntu-latest
40
+ cc : clang-12
41
+ ar : ar
42
+ - target : x86_64-apple-darwin
43
+ os : macos-latest
44
+ cc : /usr/local/opt/llvm/bin/clang
45
+ ar : /usr/local/opt/llvm/bin/llvm-ar
46
+ runs-on : ${{ matrix.os }}
39
47
steps :
40
48
- name : Checkout Crate
41
49
uses : actions/checkout@v2
42
50
- name : Checkout Toolchain
43
51
uses : actions-rs/toolchain@v1
44
52
with :
45
53
profile : minimal
46
- toolchain : ${{ matrix.rust }}
54
+ toolchain : stable
47
55
override : true
48
56
- name : Building docs
49
57
env :
@@ -54,18 +62,10 @@ jobs:
54
62
- name : Running WASM build
55
63
env :
56
64
DO_WASM : true
65
+ CC : ${{ matrix.cc }}
66
+ AR : ${{ matrix.ar }}
57
67
run : ./contrib/test.sh
58
68
59
- build_wasm :
60
- runs-on : ubuntu-latest
61
- steps :
62
- - uses : actions/checkout@v2
63
- - uses : actions-rs/toolchain@v1
64
- with :
65
- toolchain : stable
66
- target : wasm32-unknown-unknown
67
- - run : cargo build --target wasm32-unknown-unknown --features global-context,use-serde,use-rand
68
-
69
69
Tests :
70
70
name : Tests
71
71
strategy :
Original file line number Diff line number Diff line change @@ -45,3 +45,6 @@ bitcoin_hashes = "0.9"
45
45
[target .wasm32-unknown-unknown .dev-dependencies ]
46
46
wasm-bindgen-test = " 0.3"
47
47
rand = { version = " 0.6" , features = [" wasm-bindgen" ] }
48
+
49
+ [lib ]
50
+ crate-type = [" cdylib" , " rlib" ]
Original file line number Diff line number Diff line change 53
53
# Webassembly stuff
54
54
if [ " $DO_WASM " = true ]; then
55
55
clang --version &&
56
- CC=clang-9 wasm-pack build &&
57
- CC=clang-9 wasm-pack test --node;
56
+ wasm-pack build &&
57
+ wasm-pack test --node;
58
58
fi
59
59
60
60
# Address Sanitizer
You can’t perform that action at this time.
0 commit comments