From 59a21e65f7faaf6fe79bd83800bba59299f34703 Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Wed, 10 Jul 2024 23:26:38 +0200 Subject: [PATCH] Prepare a debug build --- .github/build-workflows.ps1 | 4 +- .github/pkl-workflows/helpers/Common.pkl | 2 +- .github/workflows/codeql.yml | 8 +-- .github/workflows/main.yml | 70 ++++++++++++------------ .github/workflows/pr.yml | 62 ++++++++++----------- .github/workflows/wrappers.yml | 68 +++++++++++------------ 6 files changed, 107 insertions(+), 107 deletions(-) diff --git a/.github/build-workflows.ps1 b/.github/build-workflows.ps1 index 2da93619d1..70af9ea9c0 100644 --- a/.github/build-workflows.ps1 +++ b/.github/build-workflows.ps1 @@ -1,3 +1,3 @@ -Get-ChildItem -Path './pkl-workflows' -Filter *.pkl -File -Name | ForEach-Object { - &pkl eval ./pkl-workflows/$_ -o "./workflows/$($_.Replace('pkl', 'yml'))" +Get-ChildItem -Path "$($PSScriptRoot)/pkl-workflows" -Filter *.pkl -File -Name | ForEach-Object { + &pkl eval "$($PSScriptRoot)/pkl-workflows/$($_)" -o "$($PSScriptRoot)/workflows/$($_.Replace('pkl', 'yml'))" } \ No newline at end of file diff --git a/.github/pkl-workflows/helpers/Common.pkl b/.github/pkl-workflows/helpers/Common.pkl index 7b013bed94..65f7139339 100644 --- a/.github/pkl-workflows/helpers/Common.pkl +++ b/.github/pkl-workflows/helpers/Common.pkl @@ -6,7 +6,7 @@ import "Lint.pkl" import "Package.pkl" import "Test.pkl" as TestJobs -const configuration: String = "Release" +const configuration: String = "Debug" const linuxArchs: List = List("x86_64", "armhf", "aarch64") const applePlatforms: List = List("iOS", "tvOS") diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a7d2f8b2bf..80fb6a85df 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -64,12 +64,12 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Realm/Realm - run: msbuild Realm/Realm -restore -p:Configuration=Release -p:UseSharedCompilation=false + run: msbuild Realm/Realm -restore -p:Configuration=Debug -p:UseSharedCompilation=false - name: Build Realm/Realm.PlatformHelpers - run: msbuild Realm/Realm.PlatformHelpers -restore -p:Configuration=Release -p:UseSharedCompilation=false + run: msbuild Realm/Realm.PlatformHelpers -restore -p:Configuration=Debug -p:UseSharedCompilation=false - name: Build Realm/Realm.UnityUtils - run: msbuild Realm/Realm.UnityUtils -restore -p:Configuration=Release -p:UseSharedCompilation=false + run: msbuild Realm/Realm.UnityUtils -restore -p:Configuration=Debug -p:UseSharedCompilation=false - name: Build Realm/Realm.UnityWeaver - run: msbuild Realm/Realm.UnityWeaver -restore -p:Configuration=Release -p:UseSharedCompilation=false + run: msbuild Realm/Realm.UnityWeaver -restore -p:Configuration=Debug -p:UseSharedCompilation=false - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@a57c67b89589d2d13d5ac85a9fc4679c7539f94c diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 75accee0d5..2a81259872 100755 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -208,13 +208,13 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Realm/Realm - run: msbuild Realm/Realm -t:Pack -restore -p:Configuration=Release -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} + run: msbuild Realm/Realm -t:Pack -restore -p:Configuration=Debug -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} - name: Build Realm/Realm.PlatformHelpers - run: msbuild Realm/Realm.PlatformHelpers -t:Pack -restore -p:Configuration=Release -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} + run: msbuild Realm/Realm.PlatformHelpers -t:Pack -restore -p:Configuration=Debug -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} - name: Build Realm/Realm.UnityUtils - run: msbuild Realm/Realm.UnityUtils -t:Pack -restore -p:Configuration=Release -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} + run: msbuild Realm/Realm.UnityUtils -t:Pack -restore -p:Configuration=Debug -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} - name: Build Realm/Realm.UnityWeaver - run: msbuild Realm/Realm.UnityWeaver -t:Pack -restore -p:Configuration=Release -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} + run: msbuild Realm/Realm.UnityWeaver -t:Pack -restore -p:Configuration=Debug -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} - name: Read version id: get-version run: |- @@ -521,9 +521,9 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Tests/Realm.Tests - run: msbuild Tests/Realm.Tests -restore -p:Configuration=Release -p:TargetFramework=net461 -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} -p:RealmTestsStandaloneExe=true + run: msbuild Tests/Realm.Tests -restore -p:Configuration=Debug -p:TargetFramework=net461 -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} -p:RealmTestsStandaloneExe=true - name: Run the tests - run: ./Tests/Realm.Tests/bin/Release/net461/Realm.Tests.exe --result=TestResults.xml --labels=After --baasaas-api-key=${{ secrets.BAASAAS_API_KEY}} --baas-differentiator=net-framework-${{ github.run_id }}-${{ github.run_attempt }} + run: ./Tests/Realm.Tests/bin/Debug/net461/Realm.Tests.exe --result=TestResults.xml --labels=After --baasaas-api-key=${{ secrets.BAASAAS_API_KEY}} --baas-differentiator=net-framework-${{ github.run_id }}-${{ github.run_attempt }} - name: Publish Unit Test Results if: always() uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 @@ -576,7 +576,7 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Tests/Tests.UWP - run: msbuild Tests/Tests.UWP -restore -p:Configuration=Release -p:AppxBundle=Always -p:PackageCertificateKeyFile=${{ github.workspace }}\Tests\Tests.UWP\Tests.UWP_TemporaryKey.pfx -p:PackageCertificatePassword=${{ secrets.Pfx_Password }} -p:UseDotNetNativeToolchain=false -p:AppxBundlePlatforms=x64 -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} + run: msbuild Tests/Tests.UWP -restore -p:Configuration=Debug -p:AppxBundle=Always -p:PackageCertificateKeyFile=${{ github.workspace }}\Tests\Tests.UWP\Tests.UWP_TemporaryKey.pfx -p:PackageCertificatePassword=${{ secrets.Pfx_Password }} -p:UseDotNetNativeToolchain=false -p:AppxBundlePlatforms=x64 -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} - name: Run the tests run: ./Tests/Tests.UWP/RunTests.ps1 -ExtraAppArgs ' --baasaas-api-key=${{ secrets.BAASAAS_API_KEY}} --baas-differentiator=uwp-${{ github.run_id }}-${{ github.run_attempt }}' shell: powershell @@ -632,10 +632,10 @@ jobs: with: dotnet-version: ${{ steps.get-net-version.outputs.version }} - name: Publish Tests/Realm.Tests - run: dotnet publish Tests/Realm.Tests -c Release -f ${{ matrix.framework }} -r ${{ matrix.os.runtime }} -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} -p:RealmTestsStandaloneExe=true --no-self-contained + run: dotnet publish Tests/Realm.Tests -c Debug -f ${{ matrix.framework }} -r ${{ matrix.os.runtime }} -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} -p:RealmTestsStandaloneExe=true --no-self-contained - name: Output executable path id: dotnet-publish - run: echo 'executable-path=./Tests/Realm.Tests/bin/Release/${{ matrix.framework }}/${{ matrix.os.runtime }}/Realm.Tests' >> $GITHUB_OUTPUT + run: echo 'executable-path=./Tests/Realm.Tests/bin/Debug/${{ matrix.framework }}/${{ matrix.os.runtime }}/Realm.Tests' >> $GITHUB_OUTPUT shell: bash - name: Run the tests env: @@ -709,9 +709,9 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Tests/Tests.XamarinMac - run: msbuild Tests/Tests.XamarinMac -restore -p:Configuration=Release -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} + run: msbuild Tests/Tests.XamarinMac -restore -p:Configuration=Debug -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} - name: Run the tests - run: Tests/Tests.XamarinMac/bin/Release/Tests.XamarinMac.app/Contents/MacOS/Tests.XamarinMac --headless --result=${{ github.workspace }}/TestResults.xml --labels=All + run: Tests/Tests.XamarinMac/bin/Debug/Tests.XamarinMac.app/Contents/MacOS/Tests.XamarinMac --headless --result=${{ github.workspace }}/TestResults.xml --labels=All - name: Publish Unit Test Results if: always() uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 @@ -763,9 +763,9 @@ jobs: with: xcode-version: latest-stable - name: Build Tests/Tests.Maui - run: dotnet build Tests/Tests.Maui -c Release -f net8.0-maccatalyst -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} + run: dotnet build Tests/Tests.Maui -c Debug -f net8.0-maccatalyst -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} - name: Run the tests - run: Tests/Tests.Maui/bin/Release/net8.0-maccatalyst/maccatalyst-x64/Tests.Maui.app/Contents/MacOS/Tests.Maui --headless --result=${{ github.workspace }}/TestResults.xml --labels=All --baasaas-api-key=${{ secrets.BAASAAS_API_KEY}} --baas-differentiator=macos-maui-${{ github.run_id }}-${{ github.run_attempt }} + run: Tests/Tests.Maui/bin/Debug/net8.0-maccatalyst/maccatalyst-x64/Tests.Maui.app/Contents/MacOS/Tests.Maui --headless --result=${{ github.workspace }}/TestResults.xml --labels=All --baasaas-api-key=${{ secrets.BAASAAS_API_KEY}} --baas-differentiator=macos-maui-${{ github.run_id }}-${{ github.run_attempt }} - name: Transform Results run: xsltproc --output TestResults.xml_transformed.xml Tests/Realm.Tests/EmbeddedResources/nunit3-junit.xslt TestResults.xml - name: Publish Unit Test Results @@ -809,11 +809,11 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Tests/Tests.iOS - run: msbuild Tests/Tests.iOS -restore -p:Configuration=Release -p:Platform=iPhoneSimulator -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} + run: msbuild Tests/Tests.iOS -restore -p:Configuration=Debug -p:Platform=iPhoneSimulator -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} - name: Run on Simulator uses: realm/ci-actions/run-ios-simulator@6418e15ed9bbdb19b7d456a347e5623779f95cdf with: - appPath: Tests/Tests.iOS/bin/iPhoneSimulator/Release/Tests.iOS.app + appPath: Tests/Tests.iOS/bin/iPhoneSimulator/Debug/Tests.iOS.app bundleId: io.realm.dotnettests iphoneToSimulate: iPhone-8 arguments: '--headless --result=${{ github.workspace }}/TestResults.xml --labels=All ' @@ -869,11 +869,11 @@ jobs: with: xcode-version: latest-stable - name: Build Tests/Tests.Maui - run: dotnet build Tests/Tests.Maui -c Release -f net8.0-ios -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} + run: dotnet build Tests/Tests.Maui -c Debug -f net8.0-ios -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} - name: Run on Simulator uses: realm/ci-actions/run-ios-simulator@6418e15ed9bbdb19b7d456a347e5623779f95cdf with: - appPath: Tests/Tests.Maui/bin/Release/net8.0-ios/iossimulator-x64/Tests.Maui.app + appPath: Tests/Tests.Maui/bin/Debug/net8.0-ios/iossimulator-x64/Tests.Maui.app bundleId: io.realm.mauitests iphoneToSimulate: iPhone-15 arguments: --headless --result=${{ github.workspace }}/TestResults.xml --labels=All --baasaas-api-key=${{ secrets.BAASAAS_API_KEY}} --baas-differentiator=ios-maui-${{ github.run_id }}-${{ github.run_attempt }} @@ -921,11 +921,11 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Tests/Tests.XamarinTVOS - run: msbuild Tests/Tests.XamarinTVOS -restore -p:Configuration=Release -p:Platform=iPhoneSimulator -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} + run: msbuild Tests/Tests.XamarinTVOS -restore -p:Configuration=Debug -p:Platform=iPhoneSimulator -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} - name: Run on Simulator uses: realm/ci-actions/run-ios-simulator@6418e15ed9bbdb19b7d456a347e5623779f95cdf with: - appPath: Tests/Tests.XamarinTVOS/bin/iPhoneSimulator/Release/Tests.XamarinTVOS.app + appPath: Tests/Tests.XamarinTVOS/bin/iPhoneSimulator/Debug/Tests.XamarinTVOS.app bundleId: io.realm.Tests-XamarinTVOS iphoneToSimulate: Apple-TV-1080p arguments: '--headless --result=${{ github.workspace }}/TestResults.xml --labels=All ' @@ -976,7 +976,7 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Tests/Tests.Android - run: msbuild Tests/Tests.Android -t:SignAndroidPackage -restore -p:Configuration=Release -p:AndroidUseSharedRuntime=False -p:EmbedAssembliesIntoApk=True -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} + run: msbuild Tests/Tests.Android -t:SignAndroidPackage -restore -p:Configuration=Debug -p:AndroidUseSharedRuntime=False -p:EmbedAssembliesIntoApk=True -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4.0.2 with: @@ -1043,10 +1043,10 @@ jobs: - name: Setup workloads run: dotnet workload install maui - name: Publish Tests/Tests.Maui - run: dotnet publish Tests/Tests.Maui -c Release -f net8.0-android -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} --no-self-contained + run: dotnet publish Tests/Tests.Maui -c Debug -f net8.0-android -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} --no-self-contained - name: Output executable path id: dotnet-publish - run: echo 'executable-path=./Tests/Tests.Maui/bin/Release/net8.0-android/null/Tests.Maui' >> $GITHUB_OUTPUT + run: echo 'executable-path=./Tests/Tests.Maui/bin/Debug/net8.0-android/null/Tests.Maui' >> $GITHUB_OUTPUT shell: bash - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4.0.2 @@ -1102,10 +1102,10 @@ jobs: name: Realm.PlatformHelpers.${{ needs.build-packages.outputs.package_version }} path: ${{ github.workspace }}/Realm/packages/ - name: Publish Tests/Realm.Tests - run: dotnet publish Tests/Realm.Tests -c Release -f net8.0 -r win-x64 -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} -p:RealmTestsStandaloneExe=true -p:TestWeavedClasses=true --no-self-contained + run: dotnet publish Tests/Realm.Tests -c Debug -f net8.0 -r win-x64 -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} -p:RealmTestsStandaloneExe=true -p:TestWeavedClasses=true --no-self-contained - name: Output executable path id: dotnet-publish - run: echo 'executable-path=./Tests/Realm.Tests/bin/Release/net8.0/win-x64/Realm.Tests' >> $GITHUB_OUTPUT + run: echo 'executable-path=./Tests/Realm.Tests/bin/Debug/net8.0/win-x64/Realm.Tests' >> $GITHUB_OUTPUT shell: bash - name: Run the tests run: ${{ steps.dotnet-publish.outputs.executable-path }} --result=TestResults.xml --labels=After @@ -1140,10 +1140,10 @@ jobs: - name: Setup workloads run: dotnet workload install android ${{ (runner.os != 'Linux' && 'tvos ios maccatalyst') || '' }} - name: Publish Tests/SourceGenerators/Realm.SourceGenerator.Tests - run: dotnet publish Tests/SourceGenerators/Realm.SourceGenerator.Tests -c Release -f net6.0 -r win-x64 --no-self-contained + run: dotnet publish Tests/SourceGenerators/Realm.SourceGenerator.Tests -c Debug -f net6.0 -r win-x64 --no-self-contained - name: Output executable path id: dotnet-publish - run: echo 'executable-path=./Tests/SourceGenerators/Realm.SourceGenerator.Tests/bin/Release/net6.0/win-x64/Realm.SourceGenerator.Tests' >> $GITHUB_OUTPUT + run: echo 'executable-path=./Tests/SourceGenerators/Realm.SourceGenerator.Tests/bin/Debug/net6.0/win-x64/Realm.SourceGenerator.Tests' >> $GITHUB_OUTPUT shell: bash - name: Run the tests run: ${{ steps.dotnet-publish.outputs.executable-path }} --result=TestResults.xml --labels=After @@ -1178,10 +1178,10 @@ jobs: - name: Setup workloads run: dotnet workload install android ${{ (runner.os != 'Linux' && 'tvos ios maccatalyst') || '' }} - name: Publish Tests/Weaver/Realm.Fody.Tests - run: dotnet publish Tests/Weaver/Realm.Fody.Tests -c Release -f net6.0 -r ${{ matrix.os.runtime }} --no-self-contained + run: dotnet publish Tests/Weaver/Realm.Fody.Tests -c Debug -f net6.0 -r ${{ matrix.os.runtime }} --no-self-contained - name: Output executable path id: dotnet-publish - run: echo 'executable-path=./Tests/Weaver/Realm.Fody.Tests/bin/Release/net6.0/${{ matrix.os.runtime }}/Realm.Fody.Tests' >> $GITHUB_OUTPUT + run: echo 'executable-path=./Tests/Weaver/Realm.Fody.Tests/bin/Debug/net6.0/${{ matrix.os.runtime }}/Realm.Fody.Tests' >> $GITHUB_OUTPUT shell: bash - name: Run the tests run: ${{ steps.dotnet-publish.outputs.executable-path }} --result=TestResults.xml --labels=After @@ -1236,16 +1236,16 @@ jobs: dotnet tool install dotnet-reportgenerator-globaltool --tool-path tools echo "${{ github.workspace }}/tools" >> $GITHUB_PATH - name: Publish Tests/Realm.Tests - run: dotnet publish Tests/Realm.Tests -c Release -f net8.0 -r linux-x64 -p:RealmTestsStandaloneExe=true --no-self-contained + run: dotnet publish Tests/Realm.Tests -c Debug -f net8.0 -r linux-x64 -p:RealmTestsStandaloneExe=true --no-self-contained - name: Output executable path id: dotnet-publish - run: echo 'executable-path=./Tests/Realm.Tests/bin/Release/net8.0/linux-x64/Realm.Tests' >> $GITHUB_OUTPUT + run: echo 'executable-path=./Tests/Realm.Tests/bin/Debug/net8.0/linux-x64/Realm.Tests' >> $GITHUB_OUTPUT shell: bash - name: Run the tests env: DOTNET_DbgEnableMiniDump: 1 DOTNET_EnableCrashReport: 1 - run: ./tools/coverlet ./Tests/Realm.Tests/bin/Release/net8.0/linux-x64 -t ${{ steps.dotnet-publish.outputs.executable-path }} -a '--result=TestResults.xml --labels=After --baasaas-api-key=${{ secrets.BAASAAS_API_KEY}} --baas-differentiator=code-coverage-${{ github.run_id }}-${{ github.run_attempt }}' -f lcov -o ./report.lcov --exclude '[Realm.Tests]*' --exclude '[Realm.Fody]*' --exclude '[Realm.PlatformHelpers]*' + run: ./tools/coverlet ./Tests/Realm.Tests/bin/Debug/net8.0/linux-x64 -t ${{ steps.dotnet-publish.outputs.executable-path }} -a '--result=TestResults.xml --labels=After --baasaas-api-key=${{ secrets.BAASAAS_API_KEY}} --baas-differentiator=code-coverage-${{ github.run_id }}-${{ github.run_attempt }}' -f lcov -o ./report.lcov --exclude '[Realm.Tests]*' --exclude '[Realm.Fody]*' --exclude '[Realm.PlatformHelpers]*' - name: Archive core dump if: ${{ failure() && runner.os != 'Windows' }} uses: actions/upload-artifact@v4 @@ -1452,10 +1452,10 @@ jobs: name: Realm.PlatformHelpers.${{ needs.build-packages.outputs.package_version }} path: ${{ github.workspace }}/Realm/packages/ - name: Publish Tests/Tests.XUnit - run: dotnet publish Tests/Tests.XUnit -c Release -f net6.0 -r win-x64 --no-self-contained + run: dotnet publish Tests/Tests.XUnit -c Debug -f net6.0 -r win-x64 --no-self-contained - name: Output executable path id: dotnet-publish - run: echo 'executable-path=./Tests/Tests.XUnit/bin/Release/net6.0/win-x64/Tests.XUnit' >> $GITHUB_OUTPUT + run: echo 'executable-path=./Tests/Tests.XUnit/bin/Debug/net6.0/win-x64/Tests.XUnit' >> $GITHUB_OUTPUT shell: bash - name: Run Tests run: dotnet test ${{ steps.dotnet-publish.outputs.executable-path }}/Tests.XUnit.dll --logger GitHubActions @@ -1491,10 +1491,10 @@ jobs: - name: Clear nuget cache run: dotnet nuget locals all --clear - name: Publish Tests/Benchmarks/PerformanceTests - run: dotnet publish Tests/Benchmarks/PerformanceTests -c Release -f net6.0 -r linux-x64 -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} -p:RealmTestsStandaloneExe=true --no-self-contained + run: dotnet publish Tests/Benchmarks/PerformanceTests -c Debug -f net6.0 -r linux-x64 -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} -p:RealmTestsStandaloneExe=true --no-self-contained - name: Output executable path id: dotnet-publish - run: echo 'executable-path=./Tests/Benchmarks/PerformanceTests/bin/Release/net6.0/linux-x64/PerformanceTests' >> $GITHUB_OUTPUT + run: echo 'executable-path=./Tests/Benchmarks/PerformanceTests/bin/Debug/net6.0/linux-x64/PerformanceTests' >> $GITHUB_OUTPUT shell: bash - name: Run the tests run: ${{ steps.dotnet-publish.outputs.executable-path }}/PerformanceTests -f "*" --join diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 103f093b65..e49595a630 100755 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -208,13 +208,13 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Realm/Realm - run: msbuild Realm/Realm -t:Pack -restore -p:Configuration=Release -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} + run: msbuild Realm/Realm -t:Pack -restore -p:Configuration=Debug -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} - name: Build Realm/Realm.PlatformHelpers - run: msbuild Realm/Realm.PlatformHelpers -t:Pack -restore -p:Configuration=Release -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} + run: msbuild Realm/Realm.PlatformHelpers -t:Pack -restore -p:Configuration=Debug -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} - name: Build Realm/Realm.UnityUtils - run: msbuild Realm/Realm.UnityUtils -t:Pack -restore -p:Configuration=Release -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} + run: msbuild Realm/Realm.UnityUtils -t:Pack -restore -p:Configuration=Debug -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} - name: Build Realm/Realm.UnityWeaver - run: msbuild Realm/Realm.UnityWeaver -t:Pack -restore -p:Configuration=Release -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} + run: msbuild Realm/Realm.UnityWeaver -t:Pack -restore -p:Configuration=Debug -p:PackageOutputPath=${{ github.workspace }}/Realm/packages -p:VersionSuffix=${{ steps.set-version-suffix.outputs.build_suffix }} - name: Read version id: get-version run: |- @@ -517,9 +517,9 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Tests/Realm.Tests - run: msbuild Tests/Realm.Tests -restore -p:Configuration=Release -p:TargetFramework=net461 -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} -p:RealmTestsStandaloneExe=true + run: msbuild Tests/Realm.Tests -restore -p:Configuration=Debug -p:TargetFramework=net461 -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} -p:RealmTestsStandaloneExe=true - name: Run the tests - run: './Tests/Realm.Tests/bin/Release/net461/Realm.Tests.exe --result=TestResults.xml --labels=After ' + run: './Tests/Realm.Tests/bin/Debug/net461/Realm.Tests.exe --result=TestResults.xml --labels=After ' - name: Publish Unit Test Results if: always() uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 @@ -568,7 +568,7 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Tests/Tests.UWP - run: msbuild Tests/Tests.UWP -restore -p:Configuration=Release -p:AppxBundle=Always -p:PackageCertificateKeyFile=${{ github.workspace }}\Tests\Tests.UWP\Tests.UWP_TemporaryKey.pfx -p:PackageCertificatePassword=${{ secrets.Pfx_Password }} -p:UseDotNetNativeToolchain=false -p:AppxBundlePlatforms=x64 -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} + run: msbuild Tests/Tests.UWP -restore -p:Configuration=Debug -p:AppxBundle=Always -p:PackageCertificateKeyFile=${{ github.workspace }}\Tests\Tests.UWP\Tests.UWP_TemporaryKey.pfx -p:PackageCertificatePassword=${{ secrets.Pfx_Password }} -p:UseDotNetNativeToolchain=false -p:AppxBundlePlatforms=x64 -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} - name: Run the tests run: ./Tests/Tests.UWP/RunTests.ps1 -ExtraAppArgs '' shell: powershell @@ -624,10 +624,10 @@ jobs: with: dotnet-version: ${{ steps.get-net-version.outputs.version }} - name: Publish Tests/Realm.Tests - run: dotnet publish Tests/Realm.Tests -c Release -f ${{ matrix.framework }} -r ${{ matrix.os.runtime }} -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} -p:RealmTestsStandaloneExe=true --no-self-contained + run: dotnet publish Tests/Realm.Tests -c Debug -f ${{ matrix.framework }} -r ${{ matrix.os.runtime }} -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} -p:RealmTestsStandaloneExe=true --no-self-contained - name: Output executable path id: dotnet-publish - run: echo 'executable-path=./Tests/Realm.Tests/bin/Release/${{ matrix.framework }}/${{ matrix.os.runtime }}/Realm.Tests' >> $GITHUB_OUTPUT + run: echo 'executable-path=./Tests/Realm.Tests/bin/Debug/${{ matrix.framework }}/${{ matrix.os.runtime }}/Realm.Tests' >> $GITHUB_OUTPUT shell: bash - name: Run the tests env: @@ -700,9 +700,9 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Tests/Tests.XamarinMac - run: msbuild Tests/Tests.XamarinMac -restore -p:Configuration=Release -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} + run: msbuild Tests/Tests.XamarinMac -restore -p:Configuration=Debug -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} - name: Run the tests - run: Tests/Tests.XamarinMac/bin/Release/Tests.XamarinMac.app/Contents/MacOS/Tests.XamarinMac --headless --result=${{ github.workspace }}/TestResults.xml --labels=All + run: Tests/Tests.XamarinMac/bin/Debug/Tests.XamarinMac.app/Contents/MacOS/Tests.XamarinMac --headless --result=${{ github.workspace }}/TestResults.xml --labels=All - name: Publish Unit Test Results if: always() uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 @@ -750,9 +750,9 @@ jobs: with: xcode-version: latest-stable - name: Build Tests/Tests.Maui - run: dotnet build Tests/Tests.Maui -c Release -f net8.0-maccatalyst -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} + run: dotnet build Tests/Tests.Maui -c Debug -f net8.0-maccatalyst -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} - name: Run the tests - run: 'Tests/Tests.Maui/bin/Release/net8.0-maccatalyst/maccatalyst-x64/Tests.Maui.app/Contents/MacOS/Tests.Maui --headless --result=${{ github.workspace }}/TestResults.xml --labels=All ' + run: 'Tests/Tests.Maui/bin/Debug/net8.0-maccatalyst/maccatalyst-x64/Tests.Maui.app/Contents/MacOS/Tests.Maui --headless --result=${{ github.workspace }}/TestResults.xml --labels=All ' - name: Transform Results run: xsltproc --output TestResults.xml_transformed.xml Tests/Realm.Tests/EmbeddedResources/nunit3-junit.xslt TestResults.xml - name: Publish Unit Test Results @@ -796,11 +796,11 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Tests/Tests.iOS - run: msbuild Tests/Tests.iOS -restore -p:Configuration=Release -p:Platform=iPhoneSimulator -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} + run: msbuild Tests/Tests.iOS -restore -p:Configuration=Debug -p:Platform=iPhoneSimulator -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} - name: Run on Simulator uses: realm/ci-actions/run-ios-simulator@6418e15ed9bbdb19b7d456a347e5623779f95cdf with: - appPath: Tests/Tests.iOS/bin/iPhoneSimulator/Release/Tests.iOS.app + appPath: Tests/Tests.iOS/bin/iPhoneSimulator/Debug/Tests.iOS.app bundleId: io.realm.dotnettests iphoneToSimulate: iPhone-8 arguments: '--headless --result=${{ github.workspace }}/TestResults.xml --labels=All ' @@ -852,11 +852,11 @@ jobs: with: xcode-version: latest-stable - name: Build Tests/Tests.Maui - run: dotnet build Tests/Tests.Maui -c Release -f net8.0-ios -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} + run: dotnet build Tests/Tests.Maui -c Debug -f net8.0-ios -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} - name: Run on Simulator uses: realm/ci-actions/run-ios-simulator@6418e15ed9bbdb19b7d456a347e5623779f95cdf with: - appPath: Tests/Tests.Maui/bin/Release/net8.0-ios/iossimulator-x64/Tests.Maui.app + appPath: Tests/Tests.Maui/bin/Debug/net8.0-ios/iossimulator-x64/Tests.Maui.app bundleId: io.realm.mauitests iphoneToSimulate: iPhone-15 arguments: '--headless --result=${{ github.workspace }}/TestResults.xml --labels=All ' @@ -904,11 +904,11 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Tests/Tests.XamarinTVOS - run: msbuild Tests/Tests.XamarinTVOS -restore -p:Configuration=Release -p:Platform=iPhoneSimulator -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} + run: msbuild Tests/Tests.XamarinTVOS -restore -p:Configuration=Debug -p:Platform=iPhoneSimulator -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} - name: Run on Simulator uses: realm/ci-actions/run-ios-simulator@6418e15ed9bbdb19b7d456a347e5623779f95cdf with: - appPath: Tests/Tests.XamarinTVOS/bin/iPhoneSimulator/Release/Tests.XamarinTVOS.app + appPath: Tests/Tests.XamarinTVOS/bin/iPhoneSimulator/Debug/Tests.XamarinTVOS.app bundleId: io.realm.Tests-XamarinTVOS iphoneToSimulate: Apple-TV-1080p arguments: '--headless --result=${{ github.workspace }}/TestResults.xml --labels=All ' @@ -959,7 +959,7 @@ jobs: if: ${{ runner.os == 'Windows' }} uses: microsoft/setup-msbuild@70b70342ae97ca98d5eaad06cafd26d30f9592a9 - name: Build Tests/Tests.Android - run: msbuild Tests/Tests.Android -t:SignAndroidPackage -restore -p:Configuration=Release -p:AndroidUseSharedRuntime=False -p:EmbedAssembliesIntoApk=True -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} + run: msbuild Tests/Tests.Android -t:SignAndroidPackage -restore -p:Configuration=Debug -p:AndroidUseSharedRuntime=False -p:EmbedAssembliesIntoApk=True -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4.0.2 with: @@ -1022,10 +1022,10 @@ jobs: - name: Setup workloads run: dotnet workload install maui - name: Publish Tests/Tests.Maui - run: dotnet publish Tests/Tests.Maui -c Release -f net8.0-android -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} --no-self-contained + run: dotnet publish Tests/Tests.Maui -c Debug -f net8.0-android -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} --no-self-contained - name: Output executable path id: dotnet-publish - run: echo 'executable-path=./Tests/Tests.Maui/bin/Release/net8.0-android/null/Tests.Maui' >> $GITHUB_OUTPUT + run: echo 'executable-path=./Tests/Tests.Maui/bin/Debug/net8.0-android/null/Tests.Maui' >> $GITHUB_OUTPUT shell: bash - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4.0.2 @@ -1081,10 +1081,10 @@ jobs: name: Realm.PlatformHelpers.${{ needs.build-packages.outputs.package_version }} path: ${{ github.workspace }}/Realm/packages/ - name: Publish Tests/Realm.Tests - run: dotnet publish Tests/Realm.Tests -c Release -f net8.0 -r win-x64 -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} -p:RealmTestsStandaloneExe=true -p:TestWeavedClasses=true --no-self-contained + run: dotnet publish Tests/Realm.Tests -c Debug -f net8.0 -r win-x64 -p:RestoreConfigFile=Tests/Test.NuGet.Config -p:UseRealmNupkgsWithVersion=${{ needs.build-packages.outputs.package_version }} -p:RealmTestsStandaloneExe=true -p:TestWeavedClasses=true --no-self-contained - name: Output executable path id: dotnet-publish - run: echo 'executable-path=./Tests/Realm.Tests/bin/Release/net8.0/win-x64/Realm.Tests' >> $GITHUB_OUTPUT + run: echo 'executable-path=./Tests/Realm.Tests/bin/Debug/net8.0/win-x64/Realm.Tests' >> $GITHUB_OUTPUT shell: bash - name: Run the tests run: ${{ steps.dotnet-publish.outputs.executable-path }} --result=TestResults.xml --labels=After @@ -1119,10 +1119,10 @@ jobs: - name: Setup workloads run: dotnet workload install android ${{ (runner.os != 'Linux' && 'tvos ios maccatalyst') || '' }} - name: Publish Tests/SourceGenerators/Realm.SourceGenerator.Tests - run: dotnet publish Tests/SourceGenerators/Realm.SourceGenerator.Tests -c Release -f net6.0 -r win-x64 --no-self-contained + run: dotnet publish Tests/SourceGenerators/Realm.SourceGenerator.Tests -c Debug -f net6.0 -r win-x64 --no-self-contained - name: Output executable path id: dotnet-publish - run: echo 'executable-path=./Tests/SourceGenerators/Realm.SourceGenerator.Tests/bin/Release/net6.0/win-x64/Realm.SourceGenerator.Tests' >> $GITHUB_OUTPUT + run: echo 'executable-path=./Tests/SourceGenerators/Realm.SourceGenerator.Tests/bin/Debug/net6.0/win-x64/Realm.SourceGenerator.Tests' >> $GITHUB_OUTPUT shell: bash - name: Run the tests run: ${{ steps.dotnet-publish.outputs.executable-path }} --result=TestResults.xml --labels=After @@ -1157,10 +1157,10 @@ jobs: - name: Setup workloads run: dotnet workload install android ${{ (runner.os != 'Linux' && 'tvos ios maccatalyst') || '' }} - name: Publish Tests/Weaver/Realm.Fody.Tests - run: dotnet publish Tests/Weaver/Realm.Fody.Tests -c Release -f net6.0 -r ${{ matrix.os.runtime }} --no-self-contained + run: dotnet publish Tests/Weaver/Realm.Fody.Tests -c Debug -f net6.0 -r ${{ matrix.os.runtime }} --no-self-contained - name: Output executable path id: dotnet-publish - run: echo 'executable-path=./Tests/Weaver/Realm.Fody.Tests/bin/Release/net6.0/${{ matrix.os.runtime }}/Realm.Fody.Tests' >> $GITHUB_OUTPUT + run: echo 'executable-path=./Tests/Weaver/Realm.Fody.Tests/bin/Debug/net6.0/${{ matrix.os.runtime }}/Realm.Fody.Tests' >> $GITHUB_OUTPUT shell: bash - name: Run the tests run: ${{ steps.dotnet-publish.outputs.executable-path }} --result=TestResults.xml --labels=After @@ -1215,16 +1215,16 @@ jobs: dotnet tool install dotnet-reportgenerator-globaltool --tool-path tools echo "${{ github.workspace }}/tools" >> $GITHUB_PATH - name: Publish Tests/Realm.Tests - run: dotnet publish Tests/Realm.Tests -c Release -f net8.0 -r linux-x64 -p:RealmTestsStandaloneExe=true --no-self-contained + run: dotnet publish Tests/Realm.Tests -c Debug -f net8.0 -r linux-x64 -p:RealmTestsStandaloneExe=true --no-self-contained - name: Output executable path id: dotnet-publish - run: echo 'executable-path=./Tests/Realm.Tests/bin/Release/net8.0/linux-x64/Realm.Tests' >> $GITHUB_OUTPUT + run: echo 'executable-path=./Tests/Realm.Tests/bin/Debug/net8.0/linux-x64/Realm.Tests' >> $GITHUB_OUTPUT shell: bash - name: Run the tests env: DOTNET_DbgEnableMiniDump: 1 DOTNET_EnableCrashReport: 1 - run: ./tools/coverlet ./Tests/Realm.Tests/bin/Release/net8.0/linux-x64 -t ${{ steps.dotnet-publish.outputs.executable-path }} -a '--result=TestResults.xml --labels=After --baasaas-api-key=${{ secrets.BAASAAS_API_KEY}} --baas-differentiator=code-coverage-${{ github.run_id }}-${{ github.run_attempt }}' -f lcov -o ./report.lcov --exclude '[Realm.Tests]*' --exclude '[Realm.Fody]*' --exclude '[Realm.PlatformHelpers]*' + run: ./tools/coverlet ./Tests/Realm.Tests/bin/Debug/net8.0/linux-x64 -t ${{ steps.dotnet-publish.outputs.executable-path }} -a '--result=TestResults.xml --labels=After --baasaas-api-key=${{ secrets.BAASAAS_API_KEY}} --baas-differentiator=code-coverage-${{ github.run_id }}-${{ github.run_attempt }}' -f lcov -o ./report.lcov --exclude '[Realm.Tests]*' --exclude '[Realm.Fody]*' --exclude '[Realm.PlatformHelpers]*' - name: Archive core dump if: ${{ failure() && runner.os != 'Windows' }} uses: actions/upload-artifact@v4 diff --git a/.github/workflows/wrappers.yml b/.github/workflows/wrappers.yml index a570993417..fb360bbe66 100755 --- a/.github/workflows/wrappers.yml +++ b/.github/workflows/wrappers.yml @@ -46,7 +46,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-macos-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-macos-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-macos if: matrix.os == 'ubuntu' && steps.check-cache-macos.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -63,7 +63,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-catalyst-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-catalyst-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-catalyst if: matrix.os == 'ubuntu' && steps.check-cache-catalyst.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -80,7 +80,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-linux-x86_64-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-linux-x86_64-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-linux-x86_64 if: matrix.os == 'ubuntu' && steps.check-cache-linux-x86_64.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -97,7 +97,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-linux-armhf-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-linux-armhf-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-linux-armhf if: matrix.os == 'ubuntu' && steps.check-cache-linux-armhf.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -114,7 +114,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-linux-aarch64-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-linux-aarch64-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-linux-aarch64 if: matrix.os == 'ubuntu' && steps.check-cache-linux-aarch64.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -131,7 +131,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-android-armeabi-v7a-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-android-armeabi-v7a-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-android-armeabi-v7a if: matrix.os == 'ubuntu' && steps.check-cache-android-armeabi-v7a.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -148,7 +148,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-android-arm64-v8a-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-android-arm64-v8a-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-android-arm64-v8a if: matrix.os == 'ubuntu' && steps.check-cache-android-arm64-v8a.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -165,7 +165,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-android-x86-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-android-x86-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-android-x86 if: matrix.os == 'ubuntu' && steps.check-cache-android-x86.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -182,7 +182,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-android-x86_64-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-android-x86_64-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-android-x86_64 if: matrix.os == 'ubuntu' && steps.check-cache-android-x86_64.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -199,7 +199,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-windows-Win32-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-windows-Win32-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-windows-Win32 if: matrix.os == 'windows' && steps.check-cache-windows-Win32.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -216,7 +216,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-windows-x64-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-windows-x64-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-windows-x64 if: matrix.os == 'windows' && steps.check-cache-windows-x64.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -233,7 +233,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-windows-ARM64-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-windows-ARM64-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-windows-ARM64 if: matrix.os == 'windows' && steps.check-cache-windows-ARM64.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -250,7 +250,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-windows-uwp-Win32-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-windows-uwp-Win32-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-windows-uwp-Win32 if: matrix.os == 'windows' && steps.check-cache-windows-uwp-Win32.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -267,7 +267,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-windows-uwp-x64-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-windows-uwp-x64-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-windows-uwp-x64 if: matrix.os == 'windows' && steps.check-cache-windows-uwp-x64.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -284,7 +284,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-windows-uwp-ARM-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-windows-uwp-ARM-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-windows-uwp-ARM if: matrix.os == 'windows' && steps.check-cache-windows-uwp-ARM.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -301,7 +301,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-windows-uwp-ARM64-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-windows-uwp-ARM64-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-windows-uwp-ARM64 if: matrix.os == 'windows' && steps.check-cache-windows-uwp-ARM64.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -318,7 +318,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-iOS-Device-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-iOS-Device-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-iOS-Device if: matrix.os == 'ubuntu' && steps.check-cache-iOS-Device.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -335,7 +335,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-iOS-Simulator-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-iOS-Simulator-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-iOS-Simulator if: matrix.os == 'ubuntu' && steps.check-cache-iOS-Simulator.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -352,7 +352,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-tvOS-Device-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-tvOS-Device-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-tvOS-Device if: matrix.os == 'ubuntu' && steps.check-cache-tvOS-Device.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -369,7 +369,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ./wrappers/build/** - key: wrappers-tvOS-Simulator-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-tvOS-Simulator-Debug-${{hashFiles('./wrappers/**')}} - name: Store artifacts for wrappers-tvOS-Simulator if: matrix.os == 'ubuntu' && steps.check-cache-tvOS-Simulator.outputs.cache-hit == 'true' uses: actions/upload-artifact@v4 @@ -404,10 +404,10 @@ jobs: uses: actions/cache@v4 with: path: ./wrappers/build/** - key: wrappers-macos-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-macos-Debug-${{hashFiles('./wrappers/**')}} - name: Build Wrappers if: steps.check-cache.outputs.cache-hit != 'true' - run: ./wrappers/build-macos.sh --configuration=Release -DCMAKE_INTERPROCEDURAL_OPTIMIZATION='ON' + run: ./wrappers/build-macos.sh --configuration=Debug -DCMAKE_INTERPROCEDURAL_OPTIMIZATION='ON' - name: Store artifacts for wrappers-macos uses: actions/upload-artifact@v4 with: @@ -433,10 +433,10 @@ jobs: uses: actions/cache@v4 with: path: ./wrappers/build/** - key: wrappers-catalyst-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-catalyst-Debug-${{hashFiles('./wrappers/**')}} - name: Build Wrappers if: steps.check-cache.outputs.cache-hit != 'true' - run: pwsh ./wrappers/build-apple-platform.ps1 Catalyst -Configuration Release -EnableLTO + run: pwsh ./wrappers/build-apple-platform.ps1 Catalyst -Configuration Debug -EnableLTO - name: Store artifacts for wrappers-catalyst uses: actions/upload-artifact@v4 with: @@ -462,7 +462,7 @@ jobs: uses: actions/cache@v4 with: path: ./wrappers/build/** - key: wrappers-${{ matrix.platform }}-${{ matrix.target }}-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-${{ matrix.platform }}-${{ matrix.target }}-Debug-${{hashFiles('./wrappers/**')}} - name: Setup Xcode if: steps.check-cache.outputs.cache-hit != 'true' uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd @@ -470,7 +470,7 @@ jobs: xcode-version: '14' - name: Build Wrappers if: steps.check-cache.outputs.cache-hit != 'true' - run: 'pwsh ./wrappers/build-apple-platform.ps1 ${{ matrix.platform }} -Targets ${{ matrix.target }} -Configuration Release ' + run: 'pwsh ./wrappers/build-apple-platform.ps1 ${{ matrix.platform }} -Targets ${{ matrix.target }} -Configuration Debug ' - name: Store artifacts for wrappers-${{ matrix.platform }}-${{ matrix.target }} uses: actions/upload-artifact@v4 with: @@ -505,13 +505,13 @@ jobs: uses: actions/cache@v4 with: path: ./wrappers/build/** - key: wrappers-linux-${{ matrix.arch }}-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-linux-${{ matrix.arch }}-Debug-${{hashFiles('./wrappers/**')}} - name: Install Ninja if: steps.check-cache.outputs.cache-hit != 'true' run: sudo apt install ninja-build - name: Build Wrappers if: steps.check-cache.outputs.cache-hit != 'true' - run: ./wrappers/build-linux.sh -a=${{ matrix.arch }} --configuration=Release -DCMAKE_INTERPROCEDURAL_OPTIMIZATION='ON' + run: ./wrappers/build-linux.sh -a=${{ matrix.arch }} --configuration=Debug -DCMAKE_INTERPROCEDURAL_OPTIMIZATION='ON' - name: Store artifacts for wrappers-linux-${{ matrix.arch }} uses: actions/upload-artifact@v4 with: @@ -544,10 +544,10 @@ jobs: uses: actions/cache@v4 with: path: ./wrappers/build/** - key: wrappers-android-${{ matrix.arch }}-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-android-${{ matrix.arch }}-Debug-${{hashFiles('./wrappers/**')}} - name: Build Wrappers if: steps.check-cache.outputs.cache-hit != 'true' - run: './wrappers/build-android.sh --ARCH=${{ matrix.arch }} --configuration=Release ' + run: './wrappers/build-android.sh --ARCH=${{ matrix.arch }} --configuration=Debug ' - name: Store artifacts for wrappers-android-${{ matrix.arch }} uses: actions/upload-artifact@v4 with: @@ -581,14 +581,14 @@ jobs: uses: actions/cache@v4 with: path: ./wrappers/build/** - key: wrappers-windows-${{ matrix.arch }}-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-windows-${{ matrix.arch }}-Debug-${{hashFiles('./wrappers/**')}} - name: Setup MSVC if: steps.check-cache.outputs.cache-hit != 'true' run: Start-Process "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" -ArgumentList 'modify --installPath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" --quiet --add Microsoft.VisualStudio.Component.VC.14.35.17.5.${{ startswith(matrix.arch, 'ARM') && matrix.arch || 'x86.x64' }}' -Wait -PassThru shell: pwsh - name: Build Wrappers if: steps.check-cache.outputs.cache-hit != 'true' - run: pwsh ./wrappers/build.ps1 Windows -Platforms ${{ matrix.arch }} -ExtraCMakeArgs "-T v143,version=14.35" -Configuration Release -EnableLTO + run: pwsh ./wrappers/build.ps1 Windows -Platforms ${{ matrix.arch }} -ExtraCMakeArgs "-T v143,version=14.35" -Configuration Debug -EnableLTO - name: Store artifacts for wrappers-windows-${{ matrix.arch }} uses: actions/upload-artifact@v4 with: @@ -621,14 +621,14 @@ jobs: uses: actions/cache@v4 with: path: ./wrappers/build/** - key: wrappers-windows-uwp-${{ matrix.arch }}-Release-${{hashFiles('./wrappers/**')}} + key: wrappers-windows-uwp-${{ matrix.arch }}-Debug-${{hashFiles('./wrappers/**')}} - name: Setup MSVC if: steps.check-cache.outputs.cache-hit != 'true' run: Start-Process "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" -ArgumentList 'modify --installPath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" --quiet --add Microsoft.VisualStudio.Component.VC.14.35.17.5.${{ startswith(matrix.arch, 'ARM') && matrix.arch || 'x86.x64' }}' -Wait -PassThru shell: pwsh - name: Build Wrappers if: steps.check-cache.outputs.cache-hit != 'true' - run: pwsh ./wrappers/build.ps1 WindowsStore -Platforms ${{ matrix.arch }} -ExtraCMakeArgs "-T v143,version=14.35" -Configuration Release -EnableLTO + run: pwsh ./wrappers/build.ps1 WindowsStore -Platforms ${{ matrix.arch }} -ExtraCMakeArgs "-T v143,version=14.35" -Configuration Debug -EnableLTO - name: Store artifacts for wrappers-windows-uwp-${{ matrix.arch }} uses: actions/upload-artifact@v4 with: