-
Notifications
You must be signed in to change notification settings - Fork 26
39 lines (31 loc) · 990 Bytes
/
dotnet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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@v2
with:
name: drop
path: artifacts