From 685eb0d70ef7876e3d1984d047b24977eac0c2ae Mon Sep 17 00:00:00 2001 From: Matt Johnson-Pint Date: Sun, 23 Oct 2022 20:07:23 -0700 Subject: [PATCH] Build Windows and Tizen targets for `Sentry.Maui` (#2005) --- .github/actions/environment/action.yml | 10 +++++++++- CHANGELOG.md | 1 + Directory.Build.props | 1 + Directory.Build.targets | 6 ++++++ src/Sentry.Maui/Sentry.Maui.csproj | 14 ++++++++++++-- 5 files changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/actions/environment/action.yml b/.github/actions/environment/action.yml index 27067f8656..d3a2afb7c5 100644 --- a/.github/actions/environment/action.yml +++ b/.github/actions/environment/action.yml @@ -43,6 +43,14 @@ runs: run: > dotnet workload install \ maui-android \ - ${{ runner.os == 'macOS' && 'maui-ios maui-maccatalyst' || '' }} \ + ${{ runner.os == 'macOS' && 'maui-ios maui-maccatalyst maui-windows maui-tizen' || '' }} \ ${{ runner.os == 'Windows' && 'maui-windows' || '' }} \ --temp-dir "${{ runner.temp }}" + + # We build Sentry.Maui for every supported MAUI target so we can access platform-specific features. + # That includes Tizen. We don't need the entire Tizen SDK, but we do need the base Tizen workload. + # Though we could install it on all runners, we really only need it when building and packing for NuGet, which we do on macOS only. + - name: Install Tizen Workload + if: runner.os == 'macOS' + shell: bash + run: "curl -sSL https://raw.githubusercontent.com/Samsung/Tizen.NET/main/workload/scripts/workload-install.sh | sudo bash" diff --git a/CHANGELOG.md b/CHANGELOG.md index f527c1f1fc..8534ca6db3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - Allow custom processors to be added as a scoped dependency ([#1979](https://github.com/getsentry/sentry-dotnet/pull/1979)) - Support DI for custom transaction processors ([#1993](https://github.com/getsentry/sentry-dotnet/pull/1993)) - Mark Transaction as aborted when unhandled exception occurs ([#1996](https://github.com/getsentry/sentry-dotnet/pull/1996)) +- Build Windows and Tizen targets for `Sentry.Maui` ([#2005](https://github.com/getsentry/sentry-dotnet/pull/2005)) ### Fixes diff --git a/Directory.Build.props b/Directory.Build.props index 0f2e353be5..8ae6b78ee9 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -20,6 +20,7 @@ 10.0 13.1 21.0 + 6.5 10.0.17763.0 10.0.17763.0 diff --git a/Directory.Build.targets b/Directory.Build.targets index e05f722fb9..8db7436372 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -9,6 +9,7 @@ 10.0 13.1 21.0 + 6.5 10.0.17763.0 10.0.17763.0 @@ -28,6 +29,11 @@ + + + + + diff --git a/src/Sentry.Maui/Sentry.Maui.csproj b/src/Sentry.Maui/Sentry.Maui.csproj index 3692cc7fef..7c0e6d2032 100644 --- a/src/Sentry.Maui/Sentry.Maui.csproj +++ b/src/Sentry.Maui/Sentry.Maui.csproj @@ -3,11 +3,21 @@ Official MAUI integration for Sentry - Open-source error tracking that helps developers monitor and fix crashes in real time. net6.0;net6.0-android $(TargetFrameworks);net6.0-ios;net6.0-maccatalyst + $(TargetFrameworks);net6.0-windows10.0.19041.0 + + + $(TargetFrameworks);net6.0-tizen + + + true false