1+
12name : Run tests
23
34on : [push, pull_request]
45
5- jobs :
6+ jobs :
67 test :
78 runs-on : windows-latest
89 name : Build all projects to test the code
910 steps :
1011 - uses : actions/checkout@v2
12+
1113 - uses : actions/setup-dotnet@v3
1214 with :
1315 dotnet-version : ' 10.0.x'
16+
1417 - name : Setup Android SDK
1518 uses : actions/setup-java@v3
1619 with :
1720 distribution : ' zulu'
1821 java-version : ' 17'
22+
1923 - uses : android-actions/setup-android@v2
20- - name : Install workloads
21- run : |
22- dotnet workload install wasm-tools
23- dotnet workload install android
24- dotnet workload install ios
25- dotnet workload install maccatalyst
2624
27- - name : Run build script
28- run : ./scripts/builder.ps1 './src/'
25+ - name : Restore workloads with verbose logging
26+ run : dotnet workload restore --verbosity:detailed --ignore-failed-sources
27+ env :
28+ DOTNET_CLI_TELEMETRY_PROFILE : " True"
29+ working-directory : ./src/Avalonia.Samples/
30+
31+ - name : Build all solutions with diagnostics
32+ run : |
33+ $solutions = Get-ChildItem -Path "./src/Avalonia.Samples" -Filter "*.sln*" -Recurse | Select-Object -ExpandProperty FullName
34+ foreach ($solution in $solutions) {
35+ Write-Host "=== Restoring: $solution ==="
36+ dotnet restore $solution --verbosity:detailed --ignore-failed-sources
37+ Write-Host "=== Building: $solution ==="
38+ dotnet build $solution --no-restore --verbosity:detailed
39+ }
40+ shell : pwsh
41+ env :
42+ MSBUILDSINGLEPROCESSBUILD : " 1"
43+ DOTNET_CLI_TELEMETRY_PROFILE : " True"
44+ NUGET_VERBOSITY : " detailed"
0 commit comments