Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions build/ci/.azure-devops-stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ stages:
parameters:
vmImage: '$(linuxVMImage)'

- template: setup/.azure-devops-setup-font-fallback.yml
parameters:
vmImage: '$(linuxVMImage)'

- stage: binaries_build_native_macos
displayName: Build - Native Binaries
dependsOn:
Expand Down
42 changes: 42 additions & 0 deletions build/ci/setup/.azure-devops-setup-font-fallback.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
parameters:
vmImage: '$(linuxVMImage)'

stages:
- stage: FontFallback_Validation
displayName: Validate FontFallbackMaps
dependsOn: []

jobs:
- job: Validate_FontFallback
displayName: Validate FontFallbackMaps.skia.cs
pool:
vmImage: ${{ parameters.vmImage }}

steps:
- checkout: self
clean: true
sparseCheckoutPatterns: |
src/FontFallbackPreprocessor/**
src/Uno.UI/UI/Xaml/Documents/FontFallbackMaps.skia.cs
global.json
Directory.Build.props
Directory.Build.targets
src/Directory.Build.props
src/Directory.Build.targets

- bash: |
set -euo pipefail

echo "Regenerating FontFallbackMaps.skia.cs..."
dotnet run --project src/FontFallbackPreprocessor/FontFallbackPreprocessor.csproj -c Release -- --summary-only > src/Uno.UI/UI/Xaml/Documents/FontFallbackMaps.skia.cs.new

if ! diff -u src/Uno.UI/UI/Xaml/Documents/FontFallbackMaps.skia.cs src/Uno.UI/UI/Xaml/Documents/FontFallbackMaps.skia.cs.new; then
echo "Error: FontFallbackMaps.skia.cs is not up to date."
echo "Please run the following command locally and commit the changes:"
echo "dotnet run --project src/FontFallbackPreprocessor/FontFallbackPreprocessor.csproj -- --summary-only > src/Uno.UI/UI/Xaml/Documents/FontFallbackMaps.skia.cs"
exit 1
else
echo "FontFallbackMaps.skia.cs is up to date."
rm src/Uno.UI/UI/Xaml/Documents/FontFallbackMaps.skia.cs.new
fi
displayName: Validate FontFallbackMaps.skia.cs
14 changes: 14 additions & 0 deletions src/FontFallbackPreprocessor/FontFallbackPreprocessor.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ο»Ώ<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The System.CommandLine package version 2.0.0-beta4.22272.1 is a pre-release beta version from 2022. Consider using a stable release version if available, as beta versions may have bugs or breaking changes. Check if a stable 2.0+ version has been released since this beta.

Suggested change
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
<PackageReference Include="System.CommandLine" Version="2.0.0" />

Copilot uses AI. Check for mistakes.
</ItemGroup>

</Project>
Loading
Loading