-
Notifications
You must be signed in to change notification settings - Fork 26
39 lines (31 loc) · 950 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: 7.0.102
- name: Install .NET Workloads
shell: pwsh
run: |
& dotnet tool install --global --version 1.16.1 uno.check
& ~/.dotnet/tools/uno-check --ci --fix --non-interactive --verbose
- name: Build
run: |
mkdir -p $GITHUB_WORKSPACE/artifacts
mkdir -p $GITHUB_WORKSPACE/artifacts/wasm
cd src/MyApp.Wasm
dotnet publish -c Release -f net7.0 -p:OverrideTargetFrameworks=net7.0 /bl:/artifacts/mbuild.binlog -o $GITHUB_WORKSPACE/artifacts/wasm
- uses: actions/upload-artifact@v2
with:
name: drop
path: artifacts