Skip to content

Commit a2bd04c

Browse files
committed
globby 3
1 parent ec36b39 commit a2bd04c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

build/nuke/Build.Native.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -590,24 +590,22 @@ void PrUpdatedNativeBinary(string name, [CanBeNull] string glob = null)
590590
!curBranch.StartsWith("develop/", StringComparison.OrdinalIgnoreCase))
591591
{
592592
// it's assumed that the pushable token was used to checkout the repo
593-
var suffix = glob;
594-
595593
if (OperatingSystem.IsWindows())
596594
{
597-
suffix ??= "/**/*.dll";
595+
glob ??= "src/Native/**/*.dll";
598596
}
599597
else if (OperatingSystem.IsMacOS())
600598
{
601-
suffix ??= "/**/*.dylib";
599+
glob ??= "src/Native/**/*.dylib";
602600
}
603601
else if (OperatingSystem.IsLinux())
604602
{
605-
suffix ??= "/**/*.so*";
603+
glob ??= "src/Native/**/*.so*";
606604
}
607605

608606
Git("fetch --all", RootDirectory);
609607
Git("pull");
610-
Git($"add -f src/Native{suffix}", RootDirectory);
608+
Git($"add -f {glob}", RootDirectory);
611609
var newBranch = $"ci/{curBranch}/{name.ToLower().Replace(' ', '_')}_bins";
612610
var curCommit = GitCurrentCommit(RootDirectory);
613611
var commitCmd = InheritedShell

0 commit comments

Comments
 (0)