Skip to content

Commit

Permalink
Run smoketest in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfallin committed Oct 22, 2024
1 parent 561bd23 commit 5798a9e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,27 @@ jobs:
- run: rustup default stable
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check

smoke-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download and install wasi-sdk
run: |
cd /opt
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-24/wasi-sdk-24.0-x86_64-linux.tar.gz
tar zxvf wasi-sdk-24.0-x86_64-linux.tar.gz
ln -s wasi-sdk-24.0-x86_64-linux wasi-sdk
ls /opt/wasi-sdk
- name: Download and install wasmtime
run: |
cd /opt
wget https://github.com/bytecodealliance/wasmtime/releases/download/v25.0.2/wasmtime-v25.0.2-x86_64-linux.tar.xz
tar Jxvf wasmtime-v25.0.2-x86_64-linux.tar.xz
ln -s `pwd`/wasmtime-v25.0.2-x86_64-linux/wasmtime /usr/local/bin/
- name: Build
run: cargo build --release
- name: Build and run base 'simple' test
run: make -C tests/simple run-base
- name: Build and run wevaled 'simple' test
run: make -C tests/simple run-wevaled

0 comments on commit 5798a9e

Please sign in to comment.