From d280b647e03fc8a39422c322c4dddb9a37d1ca99 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Sun, 14 Jun 2020 10:10:17 -0700 Subject: [PATCH] Run tests under wasmtime as part of the CI --- .github/workflows/main.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f7d0bcd91..38af5eb67 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,15 +35,24 @@ jobs: - name: Build run: make package shell: bash - - name: Run the testsuite - run: make check - if: matrix.os == 'ubuntu-latest' - name: Upload artifacts uses: actions/upload-artifact@v1 with: # Upload the dist folder. Give it a name according to the OS it was built for. name: ${{ format( 'dist-{0}', matrix.os) }} path: dist + - name: Compile tests + run: make check + if: matrix.os == 'ubuntu-latest' + - name: Run tests: wasmtime + run: | + VERSION=v0.8.0 + wget https://github.com/bytecodealliance/wasmtime/releases/download/v0.8.0/wasmtime-$VERSION-x86_64-linux.tar.xz + tar -xf wasmtime-$VERSION-x86_64-linux.tar.xz + WASMTIME=wasmtime-$VERSION-x86_64-linux/wasmtime + make check RUNTIME=$WASMTIME + if: matrix.os == 'ubuntu-latest' + dockerbuild: name: Docker Build