@@ -88,7 +88,7 @@ Task("Restore-NuGet-Packages")
8888 . IsDependentOn ( "Clean" )
8989 . Does < BuildParameters > ( ( context , parameters ) =>
9090{
91- DotNetRestore ( "./src/Cake.sln " , new DotNetRestoreSettings
91+ DotNetRestore ( "./src/Cake.slnx " , new DotNetRestoreSettings
9292 {
9393 Verbosity = DotNetVerbosity . Minimal ,
9494 Sources = new [ ] { "https://api.nuget.org/v3/index.json" } ,
@@ -101,7 +101,7 @@ Task("Build")
101101 . Does < BuildParameters > ( ( context , parameters ) =>
102102{
103103 // Build the solution.
104- var path = MakeAbsolute ( new DirectoryPath ( "./src/Cake.sln " ) ) ;
104+ var path = MakeAbsolute ( new DirectoryPath ( "./src/Cake.slnx " ) ) ;
105105 DotNetBuild ( path . FullPath , new DotNetBuildSettings
106106 {
107107 Configuration = parameters . Configuration ,
@@ -116,7 +116,7 @@ Task("Run-Unit-Tests")
116116 ( ) => GetFiles ( "./src/**/*.Tests.csproj" ) ,
117117 ( parameters , project , context ) =>
118118{
119- foreach ( var framework in new [ ] { "net8.0" , "net9.0" } )
119+ foreach ( var framework in new [ ] { "net8.0" , "net9.0" , "net10.0" } )
120120 {
121121 FilePath testResultsPath = MakeAbsolute ( parameters . Paths . Directories . TestResults
122122 . CombineWithFilePath ( $ "{ project . GetFilenameWithoutExtension ( ) } _{ framework } _TestResults.xml") ) ;
@@ -207,6 +207,17 @@ Task("Upload-AppVeyor-Artifacts")
207207 }
208208} ) ;
209209
210+ Task ( "Upload-GitHubActions-Artifacts" )
211+ . IsDependentOn ( "Package" )
212+ . WithCriteria ( BuildSystem . IsRunningOnGitHubActions , nameof ( BuildSystem . IsRunningOnGitHubActions ) )
213+ . Does < BuildParameters > (
214+ static ( context , parameters ) => context
215+ . GitHubActions ( ) is var gh && gh != null
216+ ? gh . Commands
217+ . UploadArtifact ( parameters . Paths . Directories . NuGetRoot , $ "Artifact_{ gh . Environment . Runner . ImageOS ?? gh . Environment . Runner . OS } _{ gh . Environment . Runner . Architecture } _{ context . Environment . Runtime . BuiltFramework . Identifier } _{ context . Environment . Runtime . BuiltFramework . Version } ")
218+ : throw new Exception ( "GitHubActions not available" )
219+ ) ;
220+
210221Task ( "Publish-AzureDevOps" )
211222 . IsDependentOn ( "Sign-Binaries" )
212223 . IsDependentOn ( "Package" )
@@ -252,9 +263,8 @@ Task("Publish-AzureDevOps")
252263} )
253264. OnError < BuildParameters > ( ( exception , parameters ) =>
254265{
266+ // Azure Artifacts not critical
255267 Information ( "Publish-AzureDevOps Task failed, but continuing with next Task..." ) ;
256- // Temp fix already published to Azure Artifacts
257- // parameters.PublishingError = true;
258268} ) ;
259269
260270Task ( "Publish-NuGet" )
@@ -390,7 +400,8 @@ Task("Run-Integration-Tests")
390400 . DoesForEach < BuildParameters , FilePath > (
391401 parameters => new [ ] {
392402 GetFiles ( $ "{ parameters . Paths . Directories . IntegrationTestsBinTool . FullPath } /**/net8.0/**/Cake.dll") . Single ( ) ,
393- GetFiles ( $ "{ parameters . Paths . Directories . IntegrationTestsBinTool . FullPath } /**/net9.0/**/Cake.dll") . Single ( )
403+ GetFiles ( $ "{ parameters . Paths . Directories . IntegrationTestsBinTool . FullPath } /**/net9.0/**/Cake.dll") . Single ( ) ,
404+ GetFiles ( $ "{ parameters . Paths . Directories . IntegrationTestsBinTool . FullPath } /**/net10.0/**/Cake.dll") . Single ( )
394405 } ,
395406 ( parameters , cakeAssembly , context ) =>
396407{
@@ -406,7 +417,7 @@ Task("Run-Integration-Tests")
406417 } ,
407418 ArgumentCustomization = args => args
408419 . AppendSwitchQuoted ( "--target" , " " , Argument ( "integration-tests-target" , "Run-All-Tests" ) )
409- . AppendSwitchQuoted ( "--verbosity" , " " , " quiet")
420+ . AppendSwitchQuoted ( "--verbosity" , " " , Argument ( "integration-tests-verbosity" , " quiet") )
410421 . AppendSwitchQuoted ( "--platform" , " " , parameters . IsRunningOnWindows ? "windows" : "posix" )
411422 . AppendSwitchQuoted ( "--customarg" , " " , "hello" )
412423 . AppendSwitchQuoted ( "--multipleargs" , "=" , "a" )
@@ -444,10 +455,12 @@ Task("AppVeyor")
444455
445456
446457Task ( "GitHubActions" )
458+ . IsDependentOn ( "Upload-GitHubActions-Artifacts" )
447459 . IsDependentOn ( "Run-Integration-Tests" )
448460 . IsDependentOn ( "Publish-AzureDevOps" ) ;
449461
450462Task ( "GitHubActions-Release" )
463+ . IsDependentOn ( "Upload-GitHubActions-Artifacts" )
451464 . IsDependentOn ( "Publish-AzureDevOps" )
452465 . IsDependentOn ( "Publish-NuGet" )
453466 . IsDependentOn ( "Publish-GitHub-Release" )
@@ -457,7 +470,7 @@ Task("GitHubActions-Release")
457470 {
458471 throw new Exception ( "An error occurred during the publishing of Cake. All publishing tasks have been attempted." ) ;
459472 }
460- } ) ; ;
473+ } ) ;
461474
462475Task ( "Travis" )
463476 . IsDependentOn ( "Run-Unit-Tests" ) ;
0 commit comments