From 9ac7e0c98d9850cafbf749cde7d76e59eafeb74b Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Wed, 20 May 2026 21:06:21 +0200 Subject: [PATCH 01/17] build and use sentry-native on macos --- .github/workflows/ci.yml | 2 + .github/workflows/sdk.yml | 12 ++++- build/native-sdks.targets | 53 ++++++++++++++++++- scripts/download-native-sdks.ps1 | 7 ++- .../ConfigurationWindow/AdvancedTab.cs | 13 +++++ .../Native/BuildPostProcess.cs | 51 +++++++++++++++++- src/Sentry.Unity.Native/SentryNativeBridge.cs | 10 ++++ src/Sentry.Unity/MacosBackend.cs | 16 ++++++ .../ScriptableSentryUnityOptions.cs | 2 + src/Sentry.Unity/SentryUnityOptions.cs | 7 +++ .../IntegrationOptionsConfiguration.cs | 3 ++ .../ScriptableSentryUnityOptionsTests.cs | 19 +++++++ .../SentryUnityOptionsTests.cs | 14 +++++ 13 files changed, 204 insertions(+), 5 deletions(-) create mode 100644 src/Sentry.Unity/MacosBackend.cs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0414c8868..311166d62 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,8 @@ jobs: host: windows-latest - target: Cocoa host: macos-latest + - target: MacOSNative + host: macos-latest uses: ./.github/workflows/sdk.yml with: target: ${{ matrix.target }} diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.yml index 35c963615..e3819943b 100644 --- a/.github/workflows/sdk.yml +++ b/.github/workflows/sdk.yml @@ -107,12 +107,20 @@ jobs: name: ${{ env.TARGET }}-sdk path: | package-dev/Plugins/iOS/Sentry.xcframework~ - package-dev/Plugins/macOS/Sentry + package-dev/Plugins/macOS/Sentry~ # Lower retention period - we only need this to retry CI. retention-days: 14 - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - if: ${{ env.TARGET != 'Cocoa' }} + if: ${{ env.TARGET == 'MacOSNative' }} + with: + name: ${{ env.TARGET }}-sdk + path: package-dev/Plugins/macOS/SentryNative~ + # Lower retention period - we only need this to retry CI. + retention-days: 14 + + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + if: ${{ env.TARGET != 'Cocoa' && env.TARGET != 'MacOSNative' }} with: name: ${{ env.TARGET }}-sdk path: package-dev/Plugins/${{ env.TARGET }} diff --git a/build/native-sdks.targets b/build/native-sdks.targets index 63be39e0e..8b679fbd8 100644 --- a/build/native-sdks.targets +++ b/build/native-sdks.targets @@ -5,7 +5,8 @@ $(RepoRoot)modules/sentry-cocoa/ $(SentryArtifactsDestination)iOS/Sentry.xcframework~/ - $(SentryArtifactsDestination)macOS/Sentry/ + $(SentryArtifactsDestination)macOS/Sentry~/ + $(SentryArtifactsDestination)macOS/SentryNative~/ $(RepoRoot)modules/sentry-java/ @@ -131,6 +132,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - + + + + + + + + - - - + + + @@ -169,17 +171,16 @@ - - + - - - - - - - + + +