File tree Expand file tree Collapse file tree 2 files changed +54
-2
lines changed Expand file tree Collapse file tree 2 files changed +54
-2
lines changed Original file line number Diff line number Diff line change @@ -277,6 +277,47 @@ jobs:
277277 msbuild.log
278278 msbuild.binlog
279279
280+ # Unsupported Native AOT runtimes should have SentryNative auto-disabled
281+ # to avoid native library loading errors on startup.
282+ unsupported-aot :
283+ needs : build
284+ name : Unsupported AOT (${{ matrix.rid }})
285+ runs-on : ${{ matrix.os }}
286+
287+ strategy :
288+ fail-fast : false
289+ matrix :
290+ include :
291+ - os : ubuntu-24.04-arm
292+ rid : linux-arm
293+ - os : windows-latest
294+ rid : win-x86
295+
296+ steps :
297+ - name : Checkout
298+ uses : actions/checkout@v4
299+ with :
300+ submodules : recursive
301+
302+ - name : Setup Environment
303+ uses : ./.github/actions/environment
304+
305+ - name : Build Native Dependencies
306+ uses : ./.github/actions/buildnative
307+
308+ - name : Fetch NuGet Packages
309+ uses : actions/download-artifact@v4
310+ with :
311+ name : ${{ github.sha }}
312+ path : src
313+
314+ - name : Test AOT
315+ uses : getsentry/github-workflows/sentry-cli/integration-test/@v2
316+ env :
317+ RuntimeIdentifier : ${{ matrix.rid }}
318+ with :
319+ path : integration-test/aot.Tests.ps1
320+
280321 trim-analysis :
281322 needs : build-sentry-native
282323 name : Trim analysis
Original file line number Diff line number Diff line change @@ -50,11 +50,22 @@ Console.WriteLine("Hello, Sentry!");
5050 }
5151
5252 It ' Aot' {
53- dotnet publish - c Release | Write-Host
53+ $rid = $env: RuntimeIdentifier
54+ if ($env: RuntimeIdentifier )
55+ {
56+ dotnet publish - c Release - r $rid | Write-Host
57+ }
58+ else
59+ {
60+ dotnet publish - c Release | Write-Host
61+ }
5462 $LASTEXITCODE | Should - Be 0
5563
5664 $tfm = (Get-ChildItem - Path " bin/Release" - Directory | Select-Object - First 1 ).Name
57- $rid = (Get-ChildItem - Path " bin/Release/$tfm " - Directory | Select-Object - First 1 ).Name
65+ if (-not $rid )
66+ {
67+ $rid = (Get-ChildItem - Path " bin/Release/$tfm " - Directory | Select-Object - First 1 ).Name
68+ }
5869 & " bin/Release/$tfm /$rid /publish/hello-sentry" | Write-Host
5970 $LASTEXITCODE | Should - Be 0
6071 }
You can’t perform that action at this time.
0 commit comments