23
23
matrix :
24
24
# Using macos-12 because we need Xcode 13.3 or later to build Sentry.Samples.Maui. (macos-latest currently points at macos-11 which uses Xcode 13.2)
25
25
os : [ubuntu-latest, windows-latest, macos-12]
26
- include :
27
- - os : ubuntu-latest
28
- slnf : SentryLinux.slnf
29
- - os : windows-latest
30
- slnf : SentryWindows.slnf
31
- - os : macos-12
32
- slnf : SentryMac.slnf
33
26
34
27
steps :
35
28
- name : Checkout
64
57
key : ${{ runner.os }}-nuget+workloads2-${{ hashFiles('**/*.*proj', '**/*.props') }}
65
58
restore-keys : ${{ runner.os }}-nuget+workloads2
66
59
67
- # .NET Android workloads don't support Linux https://github.com/dotnet/sdk/issues/22411
60
+ - name : Install .NET Workloads (Ubuntu)
61
+ if : startsWith(matrix.os, 'ubuntu')
62
+ run : dotnet workload install maui-android
68
63
- name : Install .NET Workloads (Windows)
69
64
if : startsWith(matrix.os, 'windows')
70
65
run : dotnet workload install maui-android maui-windows
@@ -73,26 +68,15 @@ jobs:
73
68
run : dotnet workload install maui-android maui-ios maui-maccatalyst
74
69
75
70
- name : Build
76
- run : dotnet build ${{ matrix.slnf }} -c Release /p:CopyLocalLockFileAssemblies=true
71
+ run : dotnet build -c Release /p:CopyLocalLockFileAssemblies=true
77
72
78
73
- name : Test
79
- run : dotnet test ${{ matrix.slnf }} -c Release --no-build -l GitHubActions -l "trx;LogFileName=${{ matrix.os }}-test-results.trx"
80
-
81
- # - name: Create Test Report
82
- # uses: phoenix-actions/test-reporting@4b942144e31c4039ac808d9b29945864b628a574
83
- # # run this step even if previous step failed
84
- # if: success() || failure()
85
- # with:
86
- # name: Unit Test Results (${{ matrix.os }})
87
- # path: '**/*.trx'
88
- # reporter: dotnet-trx
89
- # list-suites: 'failed'
90
- # list-tests: 'failed'
74
+ run : dotnet test -c Release --no-build -l GitHubActions -l "trx;LogFileName=${{ matrix.os }}-test-results.trx"
91
75
92
76
- name : Pack
93
77
# Only pack in one build environment. We'll use macOS so we can build for ios/maccatalyst targets
94
78
if : startsWith(matrix.os, 'macos')
95
- run : dotnet pack ${{ matrix.slnf }} -c Release --no-build
79
+ run : dotnet pack -c Release --no-build
96
80
97
81
- name : Upload Verify Results
98
82
if : failure()
0 commit comments