File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 23
23
24
24
- id : ' darwin-amd64'
25
25
os : ' macos-latest'
26
+
27
+ - id : ' linux-amd64'
28
+ os : ' ubuntu-18.04'
29
+ libwasmer_archive_name : ' wasmer-linux-amd64.tar.gz'
26
30
fail-fast : true
27
31
28
32
runs-on : ${{ matrix.target.os }}
@@ -49,11 +53,24 @@ jobs:
49
53
export PATH="$HOME/.cargo/bin:$PATH"
50
54
cargo install just
51
55
52
- - name : Run all the tests
56
+ - name : Run all the tests (default)
57
+ if : ${{ !matrix.target.libwasmer_archive_name }}
53
58
shell : bash
54
59
run : |
55
60
just test
56
61
62
+ - name : Run all the tests (with custom Wasmer runtime)
63
+ if : matrix.target.libwasmer_archive_name
64
+ shell : bash
65
+ run : |
66
+ libwasmer_url=$(curl -s https://api.github.com/repos/wasmerio/wasmer-nightly/releases/latest | jq --raw-output '.assets[] | select(.name == "${{ matrix.target.libwasmer_archive_name }}") | .browser_download_url')
67
+ mkdir -p libwasmer
68
+ curl -L $libwasmer_url > release.tar.gz
69
+ tar xzvf release.tar.gz -C libwasmer
70
+ export CGO_CFLAGS="-I$(pwd)/libwasmer/include/"
71
+ export CGO_LDFLAGS="-Wl,-rpath,$(pwd)/libwasmer/lib/ -L$(pwd)/libwasmer/lib/ -lwasmer"
72
+ just test -tags custom_wasmer_runtime
73
+
57
74
- name : Run all the examples
58
75
shell : bash
59
76
run : |
Original file line number Diff line number Diff line change @@ -126,8 +126,7 @@ this library works (and is tested) on the following platforms:
126
126
$ export CGO_LDFLAGS=" -Wl,-rpath,$( pwd) /target/release/ -L$( pwd) /target/release/ -lwasmer_go"
127
127
$
128
128
$ # Run the tests.
129
- $ cd wasmer
130
- $ go test -v -tags custom_wasmer_runtime
129
+ $ just test -tags custom_wasmer_runtime
131
130
```
132
131
</details >
133
132
Original file line number Diff line number Diff line change 1
1
# Run all the tests.
2
- test :
2
+ test * ARGS :
3
3
#!/usr/bin/env bash
4
4
cd wasmer
5
5
# Run the tests.
6
- GODEBUG=cgocheck=2 go test -v
6
+ GODEBUG=cgocheck=2 go test -v {{ ARGS }}
7
7
8
8
examples :
9
9
#!/usr/bin/env bash
You can’t perform that action at this time.
0 commit comments