From ecd01837051e5322abbb71245615346df5ae33fa Mon Sep 17 00:00:00 2001 From: Peter Huene Date: Fri, 22 Nov 2019 18:26:53 -0800 Subject: [PATCH] Test the .NET Wasmtime bindings in CI. --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3aa7ba3cba..1acdd107e2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -260,6 +260,31 @@ jobs: name: bins-${{ matrix.os }} path: dist + # Build and test the .NET bindings + dotnet: + name: Test Wasmtime for .NET bindings + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - uses: actions/checkout@master + with: + submodules: true + - uses: ./.github/actions/install-rust + - uses: ./.github/actions/binary-compatible-builds + - run: rustup target add wasm32-wasi + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: '3.0.101' + - run: | + cd crates/misc/dotnet/tests + dotnet test + - run: | + cd crates/misc/dotnet/src + dotnet pack + if: matrix.os == 'macos-latest' # Currently the pack target only supports macOS + # Consumes all published artifacts from all the previous build steps, creates # a bunch of tarballs for all of them, and then publishes the tarballs # themselves as an artifact (for inspection) and then optionally creates