Skip to content

Commit

Permalink
Fix Linux and Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Jun 12, 2024
1 parent d7c3216 commit 6b4c6f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion build/BuildLinuxTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public override void Run(BuildContext context)
var buildWorkingDir = "basis_universal/";
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "CMakeLists.txt" });
context.StartProcess("make", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "" });
context.CopyFile($"{buildWorkingDir}basisu", $"{context.ArtifactsDir}/basisu");
var files = Directory.GetFiles(System.IO.Path.Combine (buildWorkingDir, "bin"), "basisu", SearchOption.TopDirectoryOnly);
context.CopyFile(files[0], $"{context.ArtifactsDir}/basisu");
}
}
4 changes: 2 additions & 2 deletions build/BuildWindowsTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public override void Run(BuildContext context)
{
var buildWorkingDir = "basis_universal/";
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "CMakeLists.txt" });
context.StartProcess("make", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "" });
var files = Directory.GetFiles(System.IO.Path.Combine (buildWorkingDir, "bin_windows"), "basisu.exe", SearchOption.TopDirectoryOnly);
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "--build . --config release" });
var files = Directory.GetFiles(System.IO.Path.Combine (buildWorkingDir, "bin"), "basisu.exe", SearchOption.TopDirectoryOnly);
context.CopyFile(files[0], $"{context.ArtifactsDir}/basisu.exe");
}
}

0 comments on commit 6b4c6f3

Please sign in to comment.