File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -218,6 +218,43 @@ jobs:
218218 with :
219219 path : integration-test
220220
221+ native-aot-docker :
222+ needs : build
223+ name : Native AOT in Docker
224+ runs-on : ubuntu-22.04
225+
226+ steps :
227+ - name : Fetch NuGet Packages
228+ uses : actions/download-artifact@v4
229+ with :
230+ name : ${{ github.sha }}
231+ path : src
232+
233+ - name : Setup Local Source
234+ run : |
235+ mkdir local-packages
236+ cp src/Sentry/bin/Release/Sentry.*.nupkg local-packages/
237+ dotnet nuget add source $PWD/local-packages --name local-packages
238+ dotnet nuget list source
239+
240+ - name : Setup Project
241+ run : |
242+ dotnet new console --aot
243+ dotnet add package Sentry --prerelease --source ./local-packages
244+ cat > Program.cs <<'EOF'
245+ SentrySdk.Init(options =>
246+ {
247+ options.Dsn = "https://foo@sentry.invalid/42";
248+ options.Debug = true;
249+ });
250+ Console.WriteLine("Hello, Sentry!");
251+ EOF
252+
253+ - name : Publish Project
254+ run : dotnet publish -p:EnableSdkContainerSupport=true -t:PublishContainer
255+
256+ - name : Run Docker Container
257+ run : docker run --rm helloworld
221258
222259 trim-analysis :
223260 needs : build-sentry-native
You can’t perform that action at this time.
0 commit comments