Skip to content

Commit 7c22d8f

Browse files
committed
Run tests under wasmtime as part of the CI
As a followup I plan to add support for running under wabt too.
1 parent 02b9f3e commit 7c22d8f

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,23 @@ jobs:
3535
- name: Build
3636
run: make package
3737
shell: bash
38-
- name: Run the testsuite
39-
run: make check
40-
if: matrix.os == 'ubuntu-latest'
4138
- name: Upload artifacts
4239
uses: actions/upload-artifact@v1
4340
with:
4441
# Upload the dist folder. Give it a name according to the OS it was built for.
4542
name: ${{ format( 'dist-{0}', matrix.os) }}
4643
path: dist
44+
- name: Compile tests
45+
run: make check
46+
if: matrix.os == 'ubuntu-latest'
47+
- name: "Run tests: wasmtime"
48+
run: |
49+
VERSION=v0.8.0
50+
wget https://github.com/bytecodealliance/wasmtime/releases/download/v0.8.0/wasmtime-$VERSION-x86_64-linux.tar.xz
51+
tar -xf wasmtime-$VERSION-x86_64-linux.tar.xz
52+
WASMTIME=wasmtime-$VERSION-x86_64-linux/wasmtime
53+
make check RUNTIME=$WASMTIME
54+
if: matrix.os == 'ubuntu-latest'
4755

4856
dockerbuild:
4957
name: Docker Build

0 commit comments

Comments
 (0)