Skip to content

Commit

Permalink
Adjust build output (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkl authored Oct 18, 2024
1 parent eb19fcb commit bf5f6a4
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,29 +61,21 @@ jobs:

- name: Run Unit Tests (.NET Framework)
if: ${{ matrix.name == 'Windows' }}
run: dotnet test --logger trx --no-restore --no-build --framework net472 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net472.binlog"
run: dotnet test --no-restore --no-build --framework net472 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net472.binlog"

- name: Run Unit Tests (.NET 6)
if: ${{ matrix.name != 'MacOS' }}
run: dotnet test --logger trx --no-restore --no-build --framework net6.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net6.0.binlog"
run: dotnet test --no-restore --no-build --framework net6.0 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net6.0.binlog"

- name: Run Unit Tests (.NET 8)
run: dotnet test --logger trx --no-restore --no-build --framework net8.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net8.0.binlog"
run: dotnet test --no-restore --no-build --framework net8.0 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net8.0.binlog"

- name: Run Unit Tests (.NET 9)
run: dotnet test --logger trx --no-restore --no-build --framework net9.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net9.0.binlog"

- name: Upload Test Results
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results-${{ matrix.name }}
path: '**/TestResults/*.trx'
if-no-files-found: error
run: dotnet test --no-restore --no-build --framework net9.0 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net9.0.binlog"

- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: success() || failure()
if: success()
with:
name: ${{ env.ArtifactsDirectoryName }}-${{ matrix.name }}
path: ${{ env.ArtifactsDirectoryName }}
2 changes: 1 addition & 1 deletion .github/workflows/Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: success() || failure()
if: success()
with:
name: ${{ env.ArtifactsDirectoryName }}
path: ${{ env.ArtifactsDirectoryName }}
Expand Down
2 changes: 2 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@
<Nullable>enable</Nullable>
<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
<SignAssembly>true</SignAssembly>
<VsTestUseMSBuildOutput>true</VsTestUseMSBuildOutput>
<_MSBUILDTLENABLED>1</_MSBUILDTLENABLED>
</PropertyGroup>
</Project>
1 change: 1 addition & 0 deletions Directory.Build.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/ConsoleLoggerParameters:Verbosity=Minimal;Summary;ForceNoAlign
/MaxCPUCount
/NodeReuse:false
/TerminalLogger:off
7 changes: 7 additions & 0 deletions Directory.Solution.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project>
<PropertyGroup>
<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
<VsTestUseMSBuildOutput>true</VsTestUseMSBuildOutput>
<_MSBUILDTLENABLED>1</_MSBUILDTLENABLED>
</PropertyGroup>
</Project>
1 change: 1 addition & 0 deletions MSBuildProjectCreator.sln
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{8339FD67
Directory.Build.props = Directory.Build.props
Directory.Build.rsp = Directory.Build.rsp
Directory.Packages.props = Directory.Packages.props
Directory.Solution.props = Directory.Solution.props
global.json = global.json
key.snk = key.snk
LICENSE = LICENSE
Expand Down

0 comments on commit bf5f6a4

Please sign in to comment.