mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-03-13 14:30:15 +08:00
add logging for debugging
This commit is contained in:
parent
5fed054030
commit
1f506365db
2
dist/cleanup/index.js
generated
vendored
2
dist/cleanup/index.js
generated
vendored
@ -74444,6 +74444,7 @@ function setUpNativeImageBuildReports(isGraalVMforJDK17OrLater, graalVMVersion)
|
||||
core.warning(`Build reports for PRs and job summaries are only available in GraalVM 22.2.0 or later. This build job uses GraalVM ${graalVMVersion}.`);
|
||||
return;
|
||||
}
|
||||
core.info(`DEBUGGING: -H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`);
|
||||
setNativeImageOption(`-H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`); // Escape backslashes for Windows
|
||||
});
|
||||
}
|
||||
@ -74455,6 +74456,7 @@ function generateReports() {
|
||||
core.warning('Unable to find build output data to create a report. Are you sure this build job has used GraalVM Native Image?');
|
||||
return;
|
||||
}
|
||||
core.info(`DEBUGGING: ${BUILD_OUTPUT_JSON_PATH}`);
|
||||
const buildOutput = JSON.parse(fs.readFileSync(BUILD_OUTPUT_JSON_PATH, 'utf8'));
|
||||
const treeSha = yield (0, utils_1.createTree)(JSON.stringify(buildOutput));
|
||||
yield (0, utils_1.createRef)(treeSha);
|
||||
|
2
dist/main/index.js
generated
vendored
2
dist/main/index.js
generated
vendored
@ -74543,6 +74543,7 @@ function setUpNativeImageBuildReports(isGraalVMforJDK17OrLater, graalVMVersion)
|
||||
core.warning(`Build reports for PRs and job summaries are only available in GraalVM 22.2.0 or later. This build job uses GraalVM ${graalVMVersion}.`);
|
||||
return;
|
||||
}
|
||||
core.info(`DEBUGGING: -H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`);
|
||||
setNativeImageOption(`-H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`); // Escape backslashes for Windows
|
||||
});
|
||||
}
|
||||
@ -74554,6 +74555,7 @@ function generateReports() {
|
||||
core.warning('Unable to find build output data to create a report. Are you sure this build job has used GraalVM Native Image?');
|
||||
return;
|
||||
}
|
||||
core.info(`DEBUGGING: ${BUILD_OUTPUT_JSON_PATH}`);
|
||||
const buildOutput = JSON.parse(fs.readFileSync(BUILD_OUTPUT_JSON_PATH, 'utf8'));
|
||||
const treeSha = yield (0, utils_1.createTree)(JSON.stringify(buildOutput));
|
||||
yield (0, utils_1.createRef)(treeSha);
|
||||
|
@ -109,6 +109,7 @@ export async function setUpNativeImageBuildReports(
|
||||
)
|
||||
return
|
||||
}
|
||||
core.info(`DEBUGGING: -H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`)
|
||||
setNativeImageOption(
|
||||
`-H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`
|
||||
)// Escape backslashes for Windows
|
||||
@ -122,6 +123,7 @@ export async function generateReports(): Promise<void> {
|
||||
)
|
||||
return
|
||||
}
|
||||
core.info(`DEBUGGING: ${BUILD_OUTPUT_JSON_PATH}`)
|
||||
const buildOutput: BuildOutput = JSON.parse(
|
||||
fs.readFileSync(BUILD_OUTPUT_JSON_PATH, 'utf8')
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user