diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 84c755dad..6b7d2d1cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,7 +51,7 @@ jobs: run: git lfs pull - name: Install DocFX - run: choco install docfx -y + run: dotnet tool install -g docfx - name: Build shell: pwsh diff --git a/articles/imagesharp/gettingstarted.md b/articles/imagesharp/gettingstarted.md index cbd148596..bb405eb41 100644 --- a/articles/imagesharp/gettingstarted.md +++ b/articles/imagesharp/gettingstarted.md @@ -121,3 +121,16 @@ If you are experiencing a significant performance gap between System.Drawing and A few troubleshooting steps to try: - Check the value of [Vector.IsHardwareAccelerated](https://docs.microsoft.com/en-us/dotnet/api/system.numerics.vector.ishardwareaccelerated?view=netcore-2.1&viewFallbackFrom=netstandard-2.0#System_Numerics_Vector_IsHardwareAccelerated). If the output is false, it means there is no SIMD support in your runtime! + +### MAUI +ImageSharp performs well with MAUI on both iOS and Android in release mode when correctly configured. For Android we recommend enabling LLVM and AOT compilation in the project file: + +```xml + + true + true + false + +``` + +>[!NOTE] Android performance in Debug mode appears to be significantly slower than in Release mode, this is not due to issues within the library itself rather upstream issues in the .NET Runtime. The following [.NET Runtime issue](https://github.com/dotnet/runtime/issues/71210) contains more information. diff --git a/build.ps1 b/build.ps1 index 42d8ee0de..0e3075120 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,18 +1,28 @@ -# Ensure all submodules are currently checked out to the latest tag. +# Ensure all submodules are currently checked out to the latest commit/tag. git submodule update --init --recursive git submodule foreach git rm --cached -r . Get-ChildItem ./ext -Directory | ForEach-Object { $path = $_.FullName + + Write-Host "Processing submodule: $path" + # Fetch tags and check out the latest tag git -C "$path" fetch --tags - $lastTag = (git -C "$path" describe --tags $(git -C "$path" rev-list --tags --max-count=1)) | Out-String - $lastTag = $lastTag.Trim() - Write-Host "$path => $lastTag" - git -C "$path" reset --hard "$lastTag" -- + # Get all tags, sort them alphabetically, and select the highest one + $highestTag = (git -C "$path" tag | Sort-Object -Descending)[0] | Out-String + $highestTag = $highestTag.Trim() + Write-Host "$path => $highestTag" + + # Checkout the latest tag + git -C "$path" reset --hard "$highestTag" + + # Forcefully clean the submodule directory, suppressing any prompts + git -C "$path" clean -fdx -q } + # Ensure deterministic builds do not affect submodule build # TODO: Remove first two values once all projects are updated to latest build props. $env:CI = $false diff --git a/docfx.json b/docfx.json index 7b43d5105..04fb1a54a 100644 --- a/docfx.json +++ b/docfx.json @@ -12,7 +12,7 @@ "disableGitFeatures": false, "disableDefaultFilter": false, "properties": { - "TargetFramework": "netcoreapp3.1" + } }, { @@ -27,7 +27,7 @@ "disableGitFeatures": false, "disableDefaultFilter": false, "properties": { - "TargetFramework": "netcoreapp3.1" + } }, { @@ -42,7 +42,7 @@ "disableGitFeatures": false, "disableDefaultFilter": false, "properties": { - "TargetFramework": "netcoreapp3.1" + } }, { @@ -57,7 +57,7 @@ "disableGitFeatures": false, "disableDefaultFilter": false, "properties": { - "TargetFramework": "netcoreapp3.1" + } }, { @@ -72,7 +72,7 @@ "disableGitFeatures": false, "disableDefaultFilter": false, "properties": { - "TargetFramework": "netcoreapp3.1" + } }, { @@ -87,7 +87,7 @@ "disableGitFeatures": false, "disableDefaultFilter": false, "properties": { - "TargetFramework": "netcoreapp3.1" + } } ], diff --git a/ext/Fonts b/ext/Fonts index 5f657745e..92a4f3283 160000 --- a/ext/Fonts +++ b/ext/Fonts @@ -1 +1 @@ -Subproject commit 5f657745e4536e852563662160a655143e9b39d9 +Subproject commit 92a4f32833cdf414b01c764a76ca2d4b4983c4d4 diff --git a/ext/ImageSharp b/ext/ImageSharp index 07fd93692..65bd9b5cc 160000 --- a/ext/ImageSharp +++ b/ext/ImageSharp @@ -1 +1 @@ -Subproject commit 07fd93692adfcb7c61670d343954e686672fd6a6 +Subproject commit 65bd9b5ccdecf4441321b661635c1469dc7b08e4 diff --git a/ext/ImageSharp.Drawing b/ext/ImageSharp.Drawing index 601b074eb..b4a25da26 160000 --- a/ext/ImageSharp.Drawing +++ b/ext/ImageSharp.Drawing @@ -1 +1 @@ -Subproject commit 601b074eb667b15df8952c82af648a8b076145e9 +Subproject commit b4a25da2660b4cc1c1023113bf5365537547fe2c diff --git a/ext/ImageSharp.Web b/ext/ImageSharp.Web index eef8ae1aa..17fde8aa6 160000 --- a/ext/ImageSharp.Web +++ b/ext/ImageSharp.Web @@ -1 +1 @@ -Subproject commit eef8ae1aae050271f99d431dc957be5c19f13ebd +Subproject commit 17fde8aa6a16cc6c40b57f0bdcf23252122be557