From 73a092a603b7d56dcc4e93ef67038ed2a0a733d0 Mon Sep 17 00:00:00 2001 From: Christoph Ruegg Date: Mon, 21 May 2018 19:26:30 +0200 Subject: [PATCH] Build: don't create NuGet packages in build on non-Windows OS for now --- build.fsx | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/build.fsx b/build.fsx index 8f96e632..24bcdef9 100644 --- a/build.fsx +++ b/build.fsx @@ -358,8 +358,8 @@ Target "Build" (fun _ -> // Build build "MathNet.Numerics.sln" - // Sign - if hasBuildParam "sign" then + // Sign (Windows only) + if isWindows && hasBuildParam "sign" then let fingerprint = "5dbea70701b40cab1b2ca62c75401342b4f0f03a" let timeserver = "http://time.certum.pl/" sign fingerprint timeserver (!! "src/Numerics/bin/Release/**/MathNet.Numerics.dll" ++ "src/FSharp/bin/Release/**/MathNet.Numerics.FSharp.dll" ) @@ -372,10 +372,11 @@ Target "Build" (fun _ -> CleanDir "out/packages/Zip" coreBundle |> zip "out/packages/Zip" "out/lib" (fun f -> f.Contains("MathNet.Numerics.") || f.Contains("System.Threading.") || f.Contains("FSharp.Core.")) - // NUGET Pack - pack "MathNet.Numerics.sln" - CopyDir "out/packages/NuGet" "src/Numerics/bin/Release/" (fun n -> n.EndsWith(".nupkg")) - CopyDir "out/packages/NuGet" "src/FSharp/bin/Release/" (fun n -> n.EndsWith(".nupkg")) + // NUGET Pack (Windows only) + if isWindows then + pack "MathNet.Numerics.sln" + CopyDir "out/packages/NuGet" "src/Numerics/bin/Release/" (fun n -> n.EndsWith(".nupkg")) + CopyDir "out/packages/NuGet" "src/FSharp/bin/Release/" (fun n -> n.EndsWith(".nupkg")) ) "Prepare" ==> "Build" @@ -385,8 +386,8 @@ Target "DataBuild" (fun _ -> // Build build "MathNet.Numerics.Data.sln" - // Sign - if hasBuildParam "sign" then + // Sign (Windows only) + if isWindows && hasBuildParam "sign" then let fingerprint = "5dbea70701b40cab1b2ca62c75401342b4f0f03a" let timeserver = "http://time.certum.pl/" sign fingerprint timeserver (!! "src/Data/Text/bin/Release/**/MathNet.Numerics.Data.Text.dll" ++ "src/Data/Matlab/bin/Release/**/MathNet.Numerics.Data.Matlab.dll" ) @@ -400,10 +401,11 @@ Target "DataBuild" (fun _ -> dataBundle |> zip "out/Data/packages/Zip" "out/Data/lib" (fun f -> f.Contains("MathNet.Numerics.Data.")) // NUGET Pack - pack "src/Data/Text/Text.csproj" - pack "src/Data/Matlab/Matlab.csproj" - CopyDir "out/Data/packages/NuGet" "src/Data/Text/bin/Release/" (fun n -> n.EndsWith(".nupkg")) - CopyDir "out/Data/packages/NuGet" "src/Data/Matlab/bin/Release/" (fun n -> n.EndsWith(".nupkg")) + if isWindows then + pack "src/Data/Text/Text.csproj" + pack "src/Data/Matlab/Matlab.csproj" + CopyDir "out/Data/packages/NuGet" "src/Data/Text/bin/Release/" (fun n -> n.EndsWith(".nupkg")) + CopyDir "out/Data/packages/NuGet" "src/Data/Matlab/bin/Release/" (fun n -> n.EndsWith(".nupkg")) ) "Prepare" ==> "DataBuild"