Use TaskFactory to create Wasm tasks #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: .NET | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Initialize submodules | |
run: | | |
git submodule init | |
git submodule update | |
- name: install standalone wasmtime | |
run: | | |
curl https://wasmtime.dev/install.sh -sSf | bash | |
echo "$HOME/.wasmtime/bin" >> $GITHUB_PATH | |
export PATH=$HOME/.wasmtime/bin:$PATH | |
wasmtime --version | |
- name: build MSBuild for unit test .dll | |
run: ./msbuild/build.sh | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Publish | |
run: dotnet publish src | |
- name: Test | |
run: dotnet test | |
- name: Examples | |
run: dotnet build examples |