improve install

This commit is contained in:
ruki
2025-01-14 23:00:57 +08:00
Unverified
parent 75f4c1709e
commit 61d3bded6f
5 changed files with 87570 additions and 11 deletions
+87564
View File
File diff suppressed because one or more lines are too long
+2 -4
View File
@@ -7,8 +7,6 @@ import * as os from 'os';
import * as fs from 'fs'; import * as fs from 'fs';
import * as path from 'path'; import * as path from 'path';
export async function loadBuildCache(): Promise<void> { export async function loadBuildCache(): Promise<void> {}
}
export async function saveBuildCache(): Promise<void> { export async function saveBuildCache(): Promise<void> {}
}
+2 -2
View File
@@ -10,7 +10,7 @@ async function run(): Promise<void> {
try { try {
await installXmake(); await installXmake();
await loadBuildCache(); await loadBuildCache();
await loadPackagesCache(); await loadPackageCache();
} catch (error) { } catch (error) {
const ex = error as Error; const ex = error as Error;
core.setFailed(ex.message); core.setFailed(ex.message);
@@ -20,7 +20,7 @@ async function run(): Promise<void> {
async function saveCache(): Promise<void> { async function saveCache(): Promise<void> {
try { try {
await saveBuildCache(); await saveBuildCache();
await savePackagesCache(); await savePackageCache();
} catch (error) { } catch (error) {
const ex = error as Error; const ex = error as Error;
core.setFailed(ex.message); core.setFailed(ex.message);
-1
View File
@@ -15,4 +15,3 @@ export async function installXmake(): Promise<void> {
} }
await exec('xmake --root --version'); await exec('xmake --root --version');
} }
+2 -4
View File
@@ -7,8 +7,6 @@ import * as os from 'os';
import * as fs from 'fs'; import * as fs from 'fs';
import * as path from 'path'; import * as path from 'path';
export async function loadPackageCache(): Promise<void> { export async function loadPackageCache(): Promise<void> {}
}
export async function savePackageCache(): Promise<void> { export async function savePackageCache(): Promise<void> {}
}