@@ -28,20 +28,14 @@ let cleanFolders (input: string seq) =
2828 }
2929
3030let benchmarkAssembly =
31- " src"
32- </> " Fantomas.Benchmarks"
33- </> " bin"
34- </> " Release"
35- </> " net7.0"
36- </> " Fantomas.Benchmarks.dll"
31+ " artifacts/bin/Fantomas.Benchmarks/release/Fantomas.Benchmarks.dll"
3732
3833let semanticVersioning =
3934 __ SOURCE_ DIRECTORY__
40- </> " src"
41- </> " Fantomas"
35+ </> " artifacts"
4236 </> " bin"
43- </> " Release "
44- </> " net6.0 "
37+ </> " Fantomas "
38+ </> " release "
4539 </> " SemanticVersioning.dll"
4640
4741let pushPackage nupkg =
@@ -62,25 +56,11 @@ let analysisReportsDir = "analysisreports"
6256pipeline " Build" {
6357 workingDir __ SOURCE_ DIRECTORY__
6458 stage " RestoreTools" { run " dotnet tool restore" }
65- stage " Clean" {
66- run (
67- cleanFolders
68- [| analysisReportsDir
69- " bin"
70- " src/Fantomas.FCS/bin/Release"
71- " src/Fantomas.FCS/obj/Release"
72- " src/Fantomas.Core/bin/Release"
73- " src/Fantomas.Core/obj/Release"
74- " src/Fantomas/bin/Release"
75- " src/Fantomas/obj/Release"
76- " src/Fantomas.Client/bin/Release"
77- " src/Fantomas.Client/obj/Release" |]
78- )
79- }
59+ stage " Clean" { run ( cleanFolders [| analysisReportsDir; " artifacts" |]) }
8060 stage " CheckFormat" { run " dotnet fantomas src docs build.fsx --check" }
81- stage " Build" { run " dotnet build -c Release" }
82- stage " UnitTests" { run " dotnet test -c Release" }
83- stage " Pack" { run " dotnet pack --no-restore -c Release -o ./bin " }
61+ stage " Build" { run " dotnet build -c Release --tl " }
62+ stage " UnitTests" { run " dotnet test -c Release --tl " }
63+ stage " Pack" { run " dotnet pack --no-restore -c Release --tl " }
8464 stage " Docs" {
8565 whenNot { platformOSX }
8666 envVars
@@ -94,7 +74,7 @@ pipeline "Build" {
9474
9575pipeline " Benchmark" {
9676 workingDir __ SOURCE_ DIRECTORY__
97- stage " Prepare" { run " dotnet build -c Release src/Fantomas.Benchmarks" }
77+ stage " Prepare" { run " dotnet build -c Release src/Fantomas.Benchmarks --tl " }
9878 stage " Benchmark" { run $" dotnet {benchmarkAssembly}" }
9979 runIfOnlySpecified true
10080}
@@ -154,7 +134,11 @@ pipeline "PushClient" {
154134 run ( fun _ ->
155135 async {
156136 return !
157- Directory.EnumerateFiles( " bin" , " Fantomas.Client.*.nupkg" , SearchOption.TopDirectoryOnly)
137+ Directory.EnumerateFiles(
138+ " artifacts/package/release" ,
139+ " Fantomas.Client.*.nupkg" ,
140+ SearchOption.TopDirectoryOnly
141+ )
158142 |> Seq.tryExactlyOne
159143 |> Option.map pushPackage
160144 |> Option.defaultValue (
@@ -449,7 +433,7 @@ pipeline "Release" {
449433 else
450434 // Push packages to NuGet
451435 let nugetPackages =
452- Directory.EnumerateFiles( " bin " , " *.nupkg" , SearchOption.TopDirectoryOnly)
436+ Directory.EnumerateFiles( " artifacts/package/release " , " *.nupkg" , SearchOption.TopDirectoryOnly)
453437 |> Seq.filter ( fun nupkg -> not ( nupkg.Contains( " Fantomas.Client" )))
454438 |> Seq.toArray
455439
0 commit comments