From c9ec89a8a7968915d9d1a0f6c0bf4156083f5204 Mon Sep 17 00:00:00 2001 From: Jeremy Powell Date: Sun, 24 Nov 2024 20:42:00 +1300 Subject: [PATCH] Add cross-platform build/test config --- .github/workflows/dotnet-desktop.yml | 4 ++-- OpenMcdf.Benchmarks/OpenMcdf.Benchmarks.csproj | 10 ++++++++-- OpenMcdf.CrossPlatform.slnf | 13 +++++++++++++ OpenMcdf.Tests/OpenMcdf.Tests.csproj | 3 ++- 4 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 OpenMcdf.CrossPlatform.slnf diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index d93f71d..3a4be3e 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -34,10 +34,10 @@ jobs: # Execute all unit tests in the solution - name: Execute unit tests - run: dotnet test --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" + run: dotnet test --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" $env:Solution_Name # Restore the application to populate the obj folder with RuntimeIdentifiers - name: Restore the application - run: dotnet build -c $env:Configuration /p:ContinuousIntegrationBuild=true + run: dotnet build -c $env:Configuration /p:ContinuousIntegrationBuild=true $env:Solution_Name env: Configuration: ${{ matrix.configuration }} diff --git a/OpenMcdf.Benchmarks/OpenMcdf.Benchmarks.csproj b/OpenMcdf.Benchmarks/OpenMcdf.Benchmarks.csproj index e0119d7..b2d2c6d 100644 --- a/OpenMcdf.Benchmarks/OpenMcdf.Benchmarks.csproj +++ b/OpenMcdf.Benchmarks/OpenMcdf.Benchmarks.csproj @@ -1,7 +1,8 @@  - net8.0-windows + net8.0 + net8.0-windows Exe @@ -9,9 +10,14 @@ + + + + + - + diff --git a/OpenMcdf.CrossPlatform.slnf b/OpenMcdf.CrossPlatform.slnf new file mode 100644 index 0000000..8d9c2ba --- /dev/null +++ b/OpenMcdf.CrossPlatform.slnf @@ -0,0 +1,13 @@ +{ + "solution": { + "path": "OpenMcdf.sln", + "projects": [ + "OpenMcdf/OpenMcdf.csproj", + "OpenMcdf.Benchmarks/OpenMcdf.Benchmarks.csproj", + "OpenMcdf.Ole/OpenMcdf.Ole.csproj", + "OpenMcdf.Ole.Tests/OpenMcdf.Ole.Tests.csproj", + "OpenMcdf.Perf/OpenMcdf.Perf.csproj", + "OpenMcdf.Tests/OpenMcdf.Tests.csproj" + ] + } +} \ No newline at end of file diff --git a/OpenMcdf.Tests/OpenMcdf.Tests.csproj b/OpenMcdf.Tests/OpenMcdf.Tests.csproj index e2f397f..648240d 100644 --- a/OpenMcdf.Tests/OpenMcdf.Tests.csproj +++ b/OpenMcdf.Tests/OpenMcdf.Tests.csproj @@ -1,7 +1,8 @@  - net48;net8.0-windows + net8.0 + net48;net8.0-windows Exe false