Skip to content

Commit a88aef2

Browse files
committed
feat(ci): build only FSharpLint.Core for docs
1 parent 5e8d1a4 commit a88aef2

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

build/build.fs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,16 @@ let cleanDocsCache _ = DocsTool.cleanDocsCache ()
547547

548548
let buildDocs ctx =
549549
let configuration = configuration (ctx.Context.AllExecutingTargets)
550+
551+
// Build only FSharpLint.Core project for documentation
552+
DotNet.build
553+
(fun c -> {
554+
c with
555+
Configuration = DotNet.BuildConfiguration.fromString (string configuration)
556+
MSBuildParams = disableBinLog c.MSBuildParams
557+
})
558+
(rootDirectory </> "src/FSharpLint.Core")
559+
550560
DocsTool.build (string configuration)
551561

552562
let watchDocs ctx =
@@ -628,9 +638,9 @@ let initTargets (ctx : Context.FakeExecutionContext) =
628638

629639
"CleanDocsCache" ==>! "BuildDocs"
630640

631-
"DotnetBuild" ?=>! "BuildDocs"
632-
633-
"DotnetBuild" ==>! "BuildDocs"
641+
// BuildDocs doesn't need DotnetBuild as it builds FSharpLint.Core itself
642+
// "DotnetBuild" ?=>! "BuildDocs"
643+
// "DotnetBuild" ==>! "BuildDocs"
634644

635645
"DotnetBuild" ==>! "WatchDocs"
636646

0 commit comments

Comments
 (0)