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
1f506365db
commit
38a653dad2
2
dist/cleanup/index.js
generated
vendored
2
dist/cleanup/index.js
generated
vendored
@ -74452,11 +74452,11 @@ exports.setUpNativeImageBuildReports = setUpNativeImageBuildReports;
|
||||
function generateReports() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
if (areJobReportsEnabled() || arePRReportsEnabled()) {
|
||||
core.info(`DEBUGGING: ${BUILD_OUTPUT_JSON_PATH}`);
|
||||
if (!fs.existsSync(BUILD_OUTPUT_JSON_PATH)) {
|
||||
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
@ -74551,11 +74551,11 @@ exports.setUpNativeImageBuildReports = setUpNativeImageBuildReports;
|
||||
function generateReports() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
if (areJobReportsEnabled() || arePRReportsEnabled()) {
|
||||
core.info(`DEBUGGING: ${BUILD_OUTPUT_JSON_PATH}`);
|
||||
if (!fs.existsSync(BUILD_OUTPUT_JSON_PATH)) {
|
||||
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);
|
||||
|
@ -117,13 +117,13 @@ export async function setUpNativeImageBuildReports(
|
||||
|
||||
export async function generateReports(): Promise<void> {
|
||||
if (areJobReportsEnabled() || arePRReportsEnabled()) {
|
||||
core.info(`DEBUGGING: ${BUILD_OUTPUT_JSON_PATH}`)
|
||||
if (!fs.existsSync(BUILD_OUTPUT_JSON_PATH)) {
|
||||
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: BuildOutput = JSON.parse(
|
||||
fs.readFileSync(BUILD_OUTPUT_JSON_PATH, 'utf8')
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user