26
26
submodules : true
27
27
fetch-depth : 0
28
28
29
+ - uses : actions/setup-dotnet@v4
30
+ with :
31
+ dotnet-version : ' 8.0.x'
32
+ dotnet-quality : ' ga'
33
+
29
34
- name : Add msbuild to PATH
30
35
uses : microsoft/setup-msbuild@v1.3
31
36
48
53
- name : Execute unit tests
49
54
run : dotnet test --logger "junit;LogFileName=${{ matrix.configuration }}.xml" --results-directory test-results $env:Tests1 $env:Tests2 $env:Tests3
50
55
env :
51
- Tests1 : ICSharpCode.Decompiler.Tests\bin\${{ matrix.configuration }}\net6 .0-windows\win-x64\ICSharpCode.Decompiler.Tests.dll
52
- Tests2 : ILSpy.Tests\bin\${{ matrix.configuration }}\net6 .0-windows\ILSpy.Tests.dll
53
- Tests3 : ILSpy.BamlDecompiler.Tests\bin\${{ matrix.configuration }}\net6 .0-windows\win-x64\ILSpy.BamlDecompiler.Tests.dll
56
+ Tests1 : ICSharpCode.Decompiler.Tests\bin\${{ matrix.configuration }}\net8 .0-windows\win-x64\ICSharpCode.Decompiler.Tests.dll
57
+ Tests2 : ILSpy.Tests\bin\${{ matrix.configuration }}\net8 .0-windows\ILSpy.Tests.dll
58
+ Tests3 : ILSpy.BamlDecompiler.Tests\bin\${{ matrix.configuration }}\net8 .0-windows\win-x64\ILSpy.BamlDecompiler.Tests.dll
54
59
55
60
- name : Upload Test Logs
56
61
uses : actions/upload-artifact@v3
@@ -76,19 +81,19 @@ jobs:
76
81
git diff --exit-code
77
82
78
83
- name : Zip ILSpy (framework-dependent)
79
- run : 7z a -tzip $env:StagingDirectory\ILSpy_binaries.zip .\ILSpy\bin\${{ matrix.configuration }}\net6 .0-windows\*.dll .\ILSpy\bin\${{ matrix.configuration }}\net6 .0-windows\*.exe .\ILSpy\bin\${{ matrix.configuration }}\net6 .0-windows\*.config .\ILSpy\bin\${{ matrix.configuration }}\net6 .0-windows\*.json .\ILSpy\bin\${{ matrix.configuration }}\net6 .0-windows\*\ILSpy.resources.dll .\ILSpy\bin\${{ matrix.configuration }}\net6 .0-windows\*\ILSpy.ReadyToRun.Plugin.resources.dll
84
+ run : 7z a -tzip $env:StagingDirectory\ILSpy_binaries.zip .\ILSpy\bin\${{ matrix.configuration }}\net8 .0-windows\*.dll .\ILSpy\bin\${{ matrix.configuration }}\net8 .0-windows\*.exe .\ILSpy\bin\${{ matrix.configuration }}\net8 .0-windows\*.config .\ILSpy\bin\${{ matrix.configuration }}\net8 .0-windows\*.json .\ILSpy\bin\${{ matrix.configuration }}\net8 .0-windows\*\ILSpy.resources.dll .\ILSpy\bin\${{ matrix.configuration }}\net8 .0-windows\*\ILSpy.ReadyToRun.Plugin.resources.dll
80
85
81
86
- name : Publish x64/arm64 framework-dependent/self-contained
82
87
shell : pwsh
83
88
run : .\publish.ps1
84
89
85
90
- name : Zip ILSpy Release (x64 self-contained)
86
91
if : matrix.configuration == 'release'
87
- run : 7z a -tzip $env:StagingDirectory\ILSpy_selfcontained_x64.zip .\ILSpy\bin\Release\net6 .0-windows\win-x64\publish\selfcontained\*
92
+ run : 7z a -tzip $env:StagingDirectory\ILSpy_selfcontained_x64.zip .\ILSpy\bin\Release\net8 .0-windows\win-x64\publish\selfcontained\*
88
93
89
94
- name : Zip ILSpy Release (arm64 framework-dependent)
90
95
if : matrix.configuration == 'release'
91
- run : 7z a -tzip $env:StagingDirectory\ILSpy_binaries_arm64.zip .\ILSpy\bin\Release\net6 .0-windows\win-arm64\publish\fwdependent\*
96
+ run : 7z a -tzip $env:StagingDirectory\ILSpy_binaries_arm64.zip .\ILSpy\bin\Release\net8 .0-windows\win-arm64\publish\fwdependent\*
92
97
93
98
- name : Build Installer (x64 and arm64, framework-dependent)
94
99
if : matrix.configuration == 'release'
0 commit comments