Skip to content

Commit 5798a9e

Browse files
committed
Run smoketest in CI.
1 parent 561bd23 commit 5798a9e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,27 @@ jobs:
2828
- run: rustup default stable
2929
- run: rustup component add rustfmt
3030
- run: cargo fmt --all -- --check
31+
32+
smoke-test:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v2
36+
- name: Download and install wasi-sdk
37+
run: |
38+
cd /opt
39+
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-24/wasi-sdk-24.0-x86_64-linux.tar.gz
40+
tar zxvf wasi-sdk-24.0-x86_64-linux.tar.gz
41+
ln -s wasi-sdk-24.0-x86_64-linux wasi-sdk
42+
ls /opt/wasi-sdk
43+
- name: Download and install wasmtime
44+
run: |
45+
cd /opt
46+
wget https://github.com/bytecodealliance/wasmtime/releases/download/v25.0.2/wasmtime-v25.0.2-x86_64-linux.tar.xz
47+
tar Jxvf wasmtime-v25.0.2-x86_64-linux.tar.xz
48+
ln -s `pwd`/wasmtime-v25.0.2-x86_64-linux/wasmtime /usr/local/bin/
49+
- name: Build
50+
run: cargo build --release
51+
- name: Build and run base 'simple' test
52+
run: make -C tests/simple run-base
53+
- name: Build and run wevaled 'simple' test
54+
run: make -C tests/simple run-wevaled

0 commit comments

Comments
 (0)