improve install
This commit is contained in:
Vendored
+87564
File diff suppressed because one or more lines are too long
+2
-4
@@ -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
@@ -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);
|
||||||
|
|||||||
@@ -15,4 +15,3 @@ export async function installXmake(): Promise<void> {
|
|||||||
}
|
}
|
||||||
await exec('xmake --root --version');
|
await exec('xmake --root --version');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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> {}
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user