mirror of
https://github.com/gradle/actions.git
synced 2025-04-22 18:59:19 +08:00
Build outputs
This commit is contained in:
parent
b09c7e669a
commit
64de06a5f7
36
dist/dependency-submission/main/index.js
vendored
36
dist/dependency-submission/main/index.js
vendored
@ -139677,21 +139677,42 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.loadBuildResults = void 0;
|
exports.markBuildResultsProcessed = exports.loadBuildResults = void 0;
|
||||||
const fs = __importStar(__nccwpck_require__(57147));
|
const fs = __importStar(__nccwpck_require__(57147));
|
||||||
const path = __importStar(__nccwpck_require__(71017));
|
const path = __importStar(__nccwpck_require__(71017));
|
||||||
function loadBuildResults() {
|
function loadBuildResults() {
|
||||||
const buildResultsDir = path.resolve(process.env['RUNNER_TEMP'], '.build-results');
|
return getUnprocessedResults().map(filePath => {
|
||||||
if (!fs.existsSync(buildResultsDir)) {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
return fs.readdirSync(buildResultsDir).map(file => {
|
|
||||||
const filePath = path.join(buildResultsDir, file);
|
|
||||||
const content = fs.readFileSync(filePath, 'utf8');
|
const content = fs.readFileSync(filePath, 'utf8');
|
||||||
return JSON.parse(content);
|
return JSON.parse(content);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.loadBuildResults = loadBuildResults;
|
exports.loadBuildResults = loadBuildResults;
|
||||||
|
function markBuildResultsProcessed() {
|
||||||
|
getUnprocessedResults().forEach(markProcessed);
|
||||||
|
}
|
||||||
|
exports.markBuildResultsProcessed = markBuildResultsProcessed;
|
||||||
|
function getUnprocessedResults() {
|
||||||
|
const buildResultsDir = path.resolve(process.env['RUNNER_TEMP'], '.build-results');
|
||||||
|
if (!fs.existsSync(buildResultsDir)) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
return fs
|
||||||
|
.readdirSync(buildResultsDir)
|
||||||
|
.map(file => {
|
||||||
|
return path.resolve(buildResultsDir, file);
|
||||||
|
})
|
||||||
|
.filter(filePath => {
|
||||||
|
return path.extname(filePath) === '.json' && !isProcessed(filePath);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function isProcessed(resultFile) {
|
||||||
|
const markerFile = `${resultFile}.processed`;
|
||||||
|
return fs.existsSync(markerFile);
|
||||||
|
}
|
||||||
|
function markProcessed(resultFile) {
|
||||||
|
const markerFile = `${resultFile}.processed`;
|
||||||
|
fs.writeFileSync(markerFile, '');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@ -142420,6 +142441,7 @@ function complete(cacheConfig, summaryConfig) {
|
|||||||
yield caches.save(userHome, gradleUserHome, cacheListener, daemonController, cacheConfig);
|
yield caches.save(userHome, gradleUserHome, cacheListener, daemonController, cacheConfig);
|
||||||
const cachingReport = (0, cache_reporting_1.generateCachingReport)(cacheListener);
|
const cachingReport = (0, cache_reporting_1.generateCachingReport)(cacheListener);
|
||||||
yield jobSummary.generateJobSummary(buildResults, cachingReport, summaryConfig);
|
yield jobSummary.generateJobSummary(buildResults, cachingReport, summaryConfig);
|
||||||
|
(0, build_results_1.markBuildResultsProcessed)();
|
||||||
core.info('Completed post-action step');
|
core.info('Completed post-action step');
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
2
dist/dependency-submission/main/index.js.map
vendored
2
dist/dependency-submission/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
36
dist/dependency-submission/post/index.js
vendored
36
dist/dependency-submission/post/index.js
vendored
@ -91105,21 +91105,42 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.loadBuildResults = void 0;
|
exports.markBuildResultsProcessed = exports.loadBuildResults = void 0;
|
||||||
const fs = __importStar(__nccwpck_require__(7147));
|
const fs = __importStar(__nccwpck_require__(7147));
|
||||||
const path = __importStar(__nccwpck_require__(1017));
|
const path = __importStar(__nccwpck_require__(1017));
|
||||||
function loadBuildResults() {
|
function loadBuildResults() {
|
||||||
const buildResultsDir = path.resolve(process.env['RUNNER_TEMP'], '.build-results');
|
return getUnprocessedResults().map(filePath => {
|
||||||
if (!fs.existsSync(buildResultsDir)) {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
return fs.readdirSync(buildResultsDir).map(file => {
|
|
||||||
const filePath = path.join(buildResultsDir, file);
|
|
||||||
const content = fs.readFileSync(filePath, 'utf8');
|
const content = fs.readFileSync(filePath, 'utf8');
|
||||||
return JSON.parse(content);
|
return JSON.parse(content);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.loadBuildResults = loadBuildResults;
|
exports.loadBuildResults = loadBuildResults;
|
||||||
|
function markBuildResultsProcessed() {
|
||||||
|
getUnprocessedResults().forEach(markProcessed);
|
||||||
|
}
|
||||||
|
exports.markBuildResultsProcessed = markBuildResultsProcessed;
|
||||||
|
function getUnprocessedResults() {
|
||||||
|
const buildResultsDir = path.resolve(process.env['RUNNER_TEMP'], '.build-results');
|
||||||
|
if (!fs.existsSync(buildResultsDir)) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
return fs
|
||||||
|
.readdirSync(buildResultsDir)
|
||||||
|
.map(file => {
|
||||||
|
return path.resolve(buildResultsDir, file);
|
||||||
|
})
|
||||||
|
.filter(filePath => {
|
||||||
|
return path.extname(filePath) === '.json' && !isProcessed(filePath);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function isProcessed(resultFile) {
|
||||||
|
const markerFile = `${resultFile}.processed`;
|
||||||
|
return fs.existsSync(markerFile);
|
||||||
|
}
|
||||||
|
function markProcessed(resultFile) {
|
||||||
|
const markerFile = `${resultFile}.processed`;
|
||||||
|
fs.writeFileSync(markerFile, '');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@ -93188,6 +93209,7 @@ function complete(cacheConfig, summaryConfig) {
|
|||||||
yield caches.save(userHome, gradleUserHome, cacheListener, daemonController, cacheConfig);
|
yield caches.save(userHome, gradleUserHome, cacheListener, daemonController, cacheConfig);
|
||||||
const cachingReport = (0, cache_reporting_1.generateCachingReport)(cacheListener);
|
const cachingReport = (0, cache_reporting_1.generateCachingReport)(cacheListener);
|
||||||
yield jobSummary.generateJobSummary(buildResults, cachingReport, summaryConfig);
|
yield jobSummary.generateJobSummary(buildResults, cachingReport, summaryConfig);
|
||||||
|
(0, build_results_1.markBuildResultsProcessed)();
|
||||||
core.info('Completed post-action step');
|
core.info('Completed post-action step');
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
2
dist/dependency-submission/post/index.js.map
vendored
2
dist/dependency-submission/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
36
dist/setup-gradle/main/index.js
vendored
36
dist/setup-gradle/main/index.js
vendored
@ -139677,21 +139677,42 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.loadBuildResults = void 0;
|
exports.markBuildResultsProcessed = exports.loadBuildResults = void 0;
|
||||||
const fs = __importStar(__nccwpck_require__(57147));
|
const fs = __importStar(__nccwpck_require__(57147));
|
||||||
const path = __importStar(__nccwpck_require__(71017));
|
const path = __importStar(__nccwpck_require__(71017));
|
||||||
function loadBuildResults() {
|
function loadBuildResults() {
|
||||||
const buildResultsDir = path.resolve(process.env['RUNNER_TEMP'], '.build-results');
|
return getUnprocessedResults().map(filePath => {
|
||||||
if (!fs.existsSync(buildResultsDir)) {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
return fs.readdirSync(buildResultsDir).map(file => {
|
|
||||||
const filePath = path.join(buildResultsDir, file);
|
|
||||||
const content = fs.readFileSync(filePath, 'utf8');
|
const content = fs.readFileSync(filePath, 'utf8');
|
||||||
return JSON.parse(content);
|
return JSON.parse(content);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.loadBuildResults = loadBuildResults;
|
exports.loadBuildResults = loadBuildResults;
|
||||||
|
function markBuildResultsProcessed() {
|
||||||
|
getUnprocessedResults().forEach(markProcessed);
|
||||||
|
}
|
||||||
|
exports.markBuildResultsProcessed = markBuildResultsProcessed;
|
||||||
|
function getUnprocessedResults() {
|
||||||
|
const buildResultsDir = path.resolve(process.env['RUNNER_TEMP'], '.build-results');
|
||||||
|
if (!fs.existsSync(buildResultsDir)) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
return fs
|
||||||
|
.readdirSync(buildResultsDir)
|
||||||
|
.map(file => {
|
||||||
|
return path.resolve(buildResultsDir, file);
|
||||||
|
})
|
||||||
|
.filter(filePath => {
|
||||||
|
return path.extname(filePath) === '.json' && !isProcessed(filePath);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function isProcessed(resultFile) {
|
||||||
|
const markerFile = `${resultFile}.processed`;
|
||||||
|
return fs.existsSync(markerFile);
|
||||||
|
}
|
||||||
|
function markProcessed(resultFile) {
|
||||||
|
const markerFile = `${resultFile}.processed`;
|
||||||
|
fs.writeFileSync(markerFile, '');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@ -142339,6 +142360,7 @@ function complete(cacheConfig, summaryConfig) {
|
|||||||
yield caches.save(userHome, gradleUserHome, cacheListener, daemonController, cacheConfig);
|
yield caches.save(userHome, gradleUserHome, cacheListener, daemonController, cacheConfig);
|
||||||
const cachingReport = (0, cache_reporting_1.generateCachingReport)(cacheListener);
|
const cachingReport = (0, cache_reporting_1.generateCachingReport)(cacheListener);
|
||||||
yield jobSummary.generateJobSummary(buildResults, cachingReport, summaryConfig);
|
yield jobSummary.generateJobSummary(buildResults, cachingReport, summaryConfig);
|
||||||
|
(0, build_results_1.markBuildResultsProcessed)();
|
||||||
core.info('Completed post-action step');
|
core.info('Completed post-action step');
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
2
dist/setup-gradle/main/index.js.map
vendored
2
dist/setup-gradle/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
36
dist/setup-gradle/post/index.js
vendored
36
dist/setup-gradle/post/index.js
vendored
@ -137130,21 +137130,42 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.loadBuildResults = void 0;
|
exports.markBuildResultsProcessed = exports.loadBuildResults = void 0;
|
||||||
const fs = __importStar(__nccwpck_require__(57147));
|
const fs = __importStar(__nccwpck_require__(57147));
|
||||||
const path = __importStar(__nccwpck_require__(71017));
|
const path = __importStar(__nccwpck_require__(71017));
|
||||||
function loadBuildResults() {
|
function loadBuildResults() {
|
||||||
const buildResultsDir = path.resolve(process.env['RUNNER_TEMP'], '.build-results');
|
return getUnprocessedResults().map(filePath => {
|
||||||
if (!fs.existsSync(buildResultsDir)) {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
return fs.readdirSync(buildResultsDir).map(file => {
|
|
||||||
const filePath = path.join(buildResultsDir, file);
|
|
||||||
const content = fs.readFileSync(filePath, 'utf8');
|
const content = fs.readFileSync(filePath, 'utf8');
|
||||||
return JSON.parse(content);
|
return JSON.parse(content);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.loadBuildResults = loadBuildResults;
|
exports.loadBuildResults = loadBuildResults;
|
||||||
|
function markBuildResultsProcessed() {
|
||||||
|
getUnprocessedResults().forEach(markProcessed);
|
||||||
|
}
|
||||||
|
exports.markBuildResultsProcessed = markBuildResultsProcessed;
|
||||||
|
function getUnprocessedResults() {
|
||||||
|
const buildResultsDir = path.resolve(process.env['RUNNER_TEMP'], '.build-results');
|
||||||
|
if (!fs.existsSync(buildResultsDir)) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
return fs
|
||||||
|
.readdirSync(buildResultsDir)
|
||||||
|
.map(file => {
|
||||||
|
return path.resolve(buildResultsDir, file);
|
||||||
|
})
|
||||||
|
.filter(filePath => {
|
||||||
|
return path.extname(filePath) === '.json' && !isProcessed(filePath);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function isProcessed(resultFile) {
|
||||||
|
const markerFile = `${resultFile}.processed`;
|
||||||
|
return fs.existsSync(markerFile);
|
||||||
|
}
|
||||||
|
function markProcessed(resultFile) {
|
||||||
|
const markerFile = `${resultFile}.processed`;
|
||||||
|
fs.writeFileSync(markerFile, '');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@ -139412,6 +139433,7 @@ function complete(cacheConfig, summaryConfig) {
|
|||||||
yield caches.save(userHome, gradleUserHome, cacheListener, daemonController, cacheConfig);
|
yield caches.save(userHome, gradleUserHome, cacheListener, daemonController, cacheConfig);
|
||||||
const cachingReport = (0, cache_reporting_1.generateCachingReport)(cacheListener);
|
const cachingReport = (0, cache_reporting_1.generateCachingReport)(cacheListener);
|
||||||
yield jobSummary.generateJobSummary(buildResults, cachingReport, summaryConfig);
|
yield jobSummary.generateJobSummary(buildResults, cachingReport, summaryConfig);
|
||||||
|
(0, build_results_1.markBuildResultsProcessed)();
|
||||||
core.info('Completed post-action step');
|
core.info('Completed post-action step');
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
2
dist/setup-gradle/post/index.js.map
vendored
2
dist/setup-gradle/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user