Skip to content

Commit 11a2d27

Browse files
committed
ci: Disable trimming for net10
Related to unoplatform/uno#21731
1 parent f631bdb commit 11a2d27

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/daily-template-size-tracking.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ jobs:
288288
$platform = "${{ matrix.platform }}"
289289
$framework = "${{ matrix.framework }}"
290290
$rid = "${{ matrix.rid }}"
291+
$dotnetVersion = "${{ matrix.dotnet }}"
292+
293+
# Disable XAML/Resource Trimming for net10 due to https://github.com/unoplatform/uno/issues/21731
294+
$enableXamlTrimming = $dotnetVersion -ne "10.0"
291295
292296
# Start timing
293297
$startTime = Get-Date
@@ -305,6 +309,7 @@ jobs:
305309
}
306310
307311
Write-Host "Found project: $($projectFile.FullName)"
312+
Write-Host "XAML/Resource Trimming enabled: $enableXamlTrimming"
308313
309314
switch ($platform) {
310315
"android" {
@@ -335,8 +340,8 @@ jobs:
335340
dotnet publish $projectFile.FullName `
336341
-f $framework `
337342
-c Release `
338-
-p:UnoXamlResourcesTrimming=true `
339-
-p:UnoEnableXamlTrimming=true `
343+
-p:UnoXamlResourcesTrimming=$enableXamlTrimming `
344+
-p:UnoEnableXamlTrimming=$enableXamlTrimming `
340345
-o publish `
341346
/bl:build.binlog
342347
}
@@ -363,8 +368,8 @@ jobs:
363368
-r $rid `
364369
--self-contained true `
365370
-p:PublishTrimmed=true `
366-
-p:UnoXamlResourcesTrimming=true `
367-
-p:UnoEnableXamlTrimming=true `
371+
-p:UnoXamlResourcesTrimming=$enableXamlTrimming `
372+
-p:UnoEnableXamlTrimming=$enableXamlTrimming `
368373
-o publish `
369374
/bl:build.binlog
370375
}

0 commit comments

Comments
 (0)