Merge pull request #413 from unoplatform/dev/youssef/upload-artifact #243
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
name: Build WebAssembly | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: 'unoplatform/wasm-build:3.0' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 8.0.300 | |
- name: Install .NET Workloads | |
shell: pwsh | |
run: | | |
& dotnet tool install --global --version 1.25.1 uno.check | |
& ~/.dotnet/tools/uno-check --ci --fix --skip androidsdk --skip openjdk --non-interactive --verbose | |
- name: Build | |
run: | | |
mkdir -p $GITHUB_WORKSPACE/artifacts | |
mkdir -p $GITHUB_WORKSPACE/artifacts/wasm | |
cd src/MyApp | |
dotnet publish -c Release -f net8.0-browserwasm -p:OverrideTargetFrameworks=net8.0 /bl:/artifacts/mbuild.binlog -o $GITHUB_WORKSPACE/artifacts/wasm | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: drop | |
path: artifacts |