Add Linux Vulkan support for local inference (#9038)

Signed-off-by: jh-block <jhugo@block.xyz>
This commit is contained in:
jh-block
2026-05-07 09:12:18 +02:00
committed by GitHub
parent d7df3fb431
commit f325a9d8e3
15 changed files with 104 additions and 27 deletions
+10 -4
View File
@@ -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;