cache packages

This commit is contained in:
ruki
2025-01-15 22:53:27 +08:00
Unverified
parent 2b937f24ee
commit 7185b3bf3b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -82722,8 +82722,8 @@ async function getPackageCachePath() {
packageCachePath += data.toString(); packageCachePath += data.toString();
}, },
}; };
packageCachePath = packageCachePath.trim();
await (0, exec_1.exec)('xmake', ['l', 'core.package.package.installdir'], options); await (0, exec_1.exec)('xmake', ['l', 'core.package.package.installdir'], options);
packageCachePath = packageCachePath.trim();
core.info(`packageCachePath: ${packageCachePath}`); core.info(`packageCachePath: ${packageCachePath}`);
return packageCachePath; return packageCachePath;
} }
+1 -1
View File
@@ -23,7 +23,7 @@ async function getPackageCachePath(): Promise<string> {
}, },
}; };
await exec('xmake', ['l', 'core.package.package.installdir'], options); await exec('xmake', ['l', 'core.package.package.installdir'], options);
packageCachePath = packageCachePath.trim().trim('"'); packageCachePath = packageCachePath.trim();
core.info(`packageCachePath: ${packageCachePath}`); core.info(`packageCachePath: ${packageCachePath}`);
return packageCachePath; return packageCachePath;
} }