-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_mac.yml
74 lines (57 loc) · 1.75 KB
/
build_mac.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: buildCI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
DOTNETVERSION: 8.0.100-rc.2.23502.2
permissions:
checks: write
jobs:
buildMauiApp:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: Install .NET 8
shell: bash
run: |
curl -o dotnet-install.sh -sSL https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh
sh dotnet-install.sh --version ${{env.DOTNETVERSION}}
dotnet --list-sdks
- name: List installed .NET info
shell: pwsh
run: dotnet --info
- name: Install .NET MAUI
shell: bash
run: |
dotnet workload install maui macos ios wasm-tools
- name: Restore nuget packages
run: |
dotnet restore <path_to_sln>
- name: Run Unit Test
shell: bash
run: |
dotnet test <path_to_Test_Project> --logger "trx;LogFileName=test-results.trx" --configuration Debug --collect:"XPlat Code Coverage"
- name: Test Reporter
uses: dorny/test-reporter@v1.7.0
if: success() || failure()
with:
name: Unit Test Report
path: <path_to_Test_ResultsTrx_file>
reporter: dotnet-trx
- name: Build MacCatalyst
shell: bash
run: |
dotnet publish <path_to_project_file> -f net8.0-maccatalyst -c Release -p:BuildIpa=True
- name: Build Android
shell: bash
run: |
dotnet publish <path_to_project_file> -f net8.0-android -c Release
- uses: actions/upload-artifact@v2
with:
name: artifacts-binaries
path: |
**/*.pkg
**/*.apk