mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-02-23 20:42:25 +08:00
parent
a20b6434b3
commit
778af55c2a
8
dist/cleanup/index.js
generated
vendored
8
dist/cleanup/index.js
generated
vendored
@ -73781,7 +73781,7 @@ function saveCache() {
|
|||||||
* @param promise the promise to ignore error from
|
* @param promise the promise to ignore error from
|
||||||
* @returns Promise that will ignore error reported by the given promise
|
* @returns Promise that will ignore error reported by the given promise
|
||||||
*/
|
*/
|
||||||
function ignoreError(promise) {
|
function ignoreErrors(promise) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
/* eslint-disable github/no-then */
|
/* eslint-disable github/no-then */
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
@ -73796,8 +73796,8 @@ function ignoreError(promise) {
|
|||||||
}
|
}
|
||||||
function run() {
|
function run() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
reports_1.generateReports();
|
yield ignoreErrors(reports_1.generateReports());
|
||||||
yield ignoreError(saveCache());
|
yield ignoreErrors(saveCache());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.run = run;
|
exports.run = run;
|
||||||
@ -74151,6 +74151,7 @@ function setUpNativeImageBuildReports(graalVMVersion) {
|
|||||||
}
|
}
|
||||||
exports.setUpNativeImageBuildReports = setUpNativeImageBuildReports;
|
exports.setUpNativeImageBuildReports = setUpNativeImageBuildReports;
|
||||||
function generateReports() {
|
function generateReports() {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
if (areJobReportsEnabled() || arePRReportsEnabled()) {
|
if (areJobReportsEnabled() || arePRReportsEnabled()) {
|
||||||
if (!fs.existsSync(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?');
|
core.warning('Unable to find build output data to create a report. Are you sure this build job has used GraalVM Native Image?');
|
||||||
@ -74166,6 +74167,7 @@ function generateReports() {
|
|||||||
utils_1.createPRComment(report);
|
utils_1.createPRComment(report);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
exports.generateReports = generateReports;
|
exports.generateReports = generateReports;
|
||||||
function areJobReportsEnabled() {
|
function areJobReportsEnabled() {
|
||||||
|
2
dist/main/index.js
generated
vendored
2
dist/main/index.js
generated
vendored
@ -74253,6 +74253,7 @@ function setUpNativeImageBuildReports(graalVMVersion) {
|
|||||||
}
|
}
|
||||||
exports.setUpNativeImageBuildReports = setUpNativeImageBuildReports;
|
exports.setUpNativeImageBuildReports = setUpNativeImageBuildReports;
|
||||||
function generateReports() {
|
function generateReports() {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
if (areJobReportsEnabled() || arePRReportsEnabled()) {
|
if (areJobReportsEnabled() || arePRReportsEnabled()) {
|
||||||
if (!fs.existsSync(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?');
|
core.warning('Unable to find build output data to create a report. Are you sure this build job has used GraalVM Native Image?');
|
||||||
@ -74268,6 +74269,7 @@ function generateReports() {
|
|||||||
utils_1.createPRComment(report);
|
utils_1.createPRComment(report);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
exports.generateReports = generateReports;
|
exports.generateReports = generateReports;
|
||||||
function areJobReportsEnabled() {
|
function areJobReportsEnabled() {
|
||||||
|
@ -44,7 +44,7 @@ async function saveCache(): Promise<void> {
|
|||||||
* @param promise the promise to ignore error from
|
* @param promise the promise to ignore error from
|
||||||
* @returns Promise that will ignore error reported by the given promise
|
* @returns Promise that will ignore error reported by the given promise
|
||||||
*/
|
*/
|
||||||
async function ignoreError(promise: Promise<void>): Promise<unknown> {
|
async function ignoreErrors(promise: Promise<void>): Promise<unknown> {
|
||||||
/* eslint-disable github/no-then */
|
/* eslint-disable github/no-then */
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
promise
|
promise
|
||||||
@ -57,8 +57,8 @@ async function ignoreError(promise: Promise<void>): Promise<unknown> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function run(): Promise<void> {
|
export async function run(): Promise<void> {
|
||||||
generateReports()
|
await ignoreErrors(generateReports())
|
||||||
await ignoreError(saveCache())
|
await ignoreErrors(saveCache())
|
||||||
}
|
}
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
|
@ -101,7 +101,7 @@ export async function setUpNativeImageBuildReports(
|
|||||||
) // Escape backslashes for Windows
|
) // Escape backslashes for Windows
|
||||||
}
|
}
|
||||||
|
|
||||||
export function generateReports(): void {
|
export async function generateReports(): Promise<void> {
|
||||||
if (areJobReportsEnabled() || arePRReportsEnabled()) {
|
if (areJobReportsEnabled() || arePRReportsEnabled()) {
|
||||||
if (!fs.existsSync(BUILD_OUTPUT_JSON_PATH)) {
|
if (!fs.existsSync(BUILD_OUTPUT_JSON_PATH)) {
|
||||||
core.warning(
|
core.warning(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user