Add Linux Vulkan support for local inference (#9038)
Signed-off-by: jh-block <jhugo@block.xyz>
This commit is contained in:
@@ -57,10 +57,16 @@ function buildTarget(platform: string): void {
|
||||
console.log(`==> Building goose for ${platform} (${rustTarget})`);
|
||||
|
||||
try {
|
||||
execSync(`cargo build --release --target ${rustTarget} --bin goose`, {
|
||||
cwd: ROOT,
|
||||
stdio: "inherit",
|
||||
});
|
||||
const featureArgs = platform.startsWith("linux-")
|
||||
? " --features vulkan"
|
||||
: "";
|
||||
execSync(
|
||||
`cargo build --release --target ${rustTarget} --bin goose${featureArgs}`,
|
||||
{
|
||||
cwd: ROOT,
|
||||
stdio: "inherit",
|
||||
},
|
||||
);
|
||||
} catch (err) {
|
||||
console.error(`Failed to build for ${platform}`);
|
||||
throw err;
|
||||
|
||||
Reference in New Issue
Block a user