Skip to content

Commit

Permalink
forego dotnet clean for now on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Jan 8, 2024
1 parent fac22ab commit a3a541a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build/scripts/Targets.fs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ open Proc.Fs
open BuildInformation

let private clean _ =
exec { run "dotnet" "clean" "-c" "release" }
if OS.Current <> OS.Windows then
exec { run "dotnet" "clean" "-c" "release" }
let removeArtifacts folder = Shell.cleanDir (Paths.ArtifactPath folder).FullName
removeArtifacts "package"
removeArtifacts "release-notes"
removeArtifacts "tests"

let private build _ = exec { run "dotnet" "build" "-c" "Release" }
let private build _ = exec { run "dotnet" "build" "-c" "release" }

let private release _ = printfn "release"

Expand Down Expand Up @@ -49,7 +50,7 @@ let private test _ =
let tfmArgs = if OS.Current = OS.Windows then [] else ["-f"; "net8.0"]
exec {
run "dotnet" (
["test"; "-c"; "Release"; loggerArg; githubActionsLogger]
["test"; "-c"; "release"; loggerArg; githubActionsLogger]
@ tfmArgs
@ ["--"; "RunConfiguration.CollectSourceInformation=true"]
)
Expand Down

0 comments on commit a3a541a

Please sign in to comment.