mirror of
https://github.com/gradle/actions
synced 2024-11-27 20:02:19 +00:00
Build outputs
This commit is contained in:
parent
8f9b7c7d7f
commit
9411346324
4 changed files with 16 additions and 4 deletions
8
dist/main/index.js
vendored
8
dist/main/index.js
vendored
|
@ -66376,6 +66376,7 @@ const JOB_CONTEXT_PARAMETER = 'workflow-job-context';
|
|||
const CACHE_DISABLED_PARAMETER = 'cache-disabled';
|
||||
const CACHE_READONLY_PARAMETER = 'cache-read-only';
|
||||
const CACHE_WRITEONLY_PARAMETER = 'cache-write-only';
|
||||
const CACHE_TIMEOUT_PARAMETER = 'cache-read-timeout';
|
||||
const STRICT_CACHE_MATCH_PARAMETER = 'gradle-home-cache-strict-match';
|
||||
const CACHE_DEBUG_VAR = 'GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED';
|
||||
const CACHE_KEY_PREFIX_VAR = 'GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX';
|
||||
|
@ -66402,6 +66403,9 @@ function isCacheDebuggingEnabled() {
|
|||
return process.env[CACHE_DEBUG_VAR] ? true : false;
|
||||
}
|
||||
exports.isCacheDebuggingEnabled = isCacheDebuggingEnabled;
|
||||
function getCacheReadTimeoutMs() {
|
||||
return parseInt(core.getInput(CACHE_TIMEOUT_PARAMETER)) * 1000;
|
||||
}
|
||||
class CacheKey {
|
||||
constructor(key, restoreKeys) {
|
||||
this.key = key;
|
||||
|
@ -66459,7 +66463,9 @@ function restoreCache(cachePath, cacheKey, cacheRestoreKeys, listener) {
|
|||
return __awaiter(this, void 0, void 0, function* () {
|
||||
listener.markRequested(cacheKey, cacheRestoreKeys);
|
||||
try {
|
||||
const restoredEntry = yield cache.restoreCache(cachePath, cacheKey, cacheRestoreKeys);
|
||||
const restoredEntry = yield cache.restoreCache(cachePath, cacheKey, cacheRestoreKeys, {
|
||||
segmentTimeoutInMs: getCacheReadTimeoutMs()
|
||||
});
|
||||
if (restoredEntry !== undefined) {
|
||||
listener.markRestored(restoredEntry.key, restoredEntry.size);
|
||||
}
|
||||
|
|
2
dist/main/index.js.map
vendored
2
dist/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
8
dist/post/index.js
vendored
8
dist/post/index.js
vendored
|
@ -65427,6 +65427,7 @@ const JOB_CONTEXT_PARAMETER = 'workflow-job-context';
|
|||
const CACHE_DISABLED_PARAMETER = 'cache-disabled';
|
||||
const CACHE_READONLY_PARAMETER = 'cache-read-only';
|
||||
const CACHE_WRITEONLY_PARAMETER = 'cache-write-only';
|
||||
const CACHE_TIMEOUT_PARAMETER = 'cache-read-timeout';
|
||||
const STRICT_CACHE_MATCH_PARAMETER = 'gradle-home-cache-strict-match';
|
||||
const CACHE_DEBUG_VAR = 'GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED';
|
||||
const CACHE_KEY_PREFIX_VAR = 'GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX';
|
||||
|
@ -65453,6 +65454,9 @@ function isCacheDebuggingEnabled() {
|
|||
return process.env[CACHE_DEBUG_VAR] ? true : false;
|
||||
}
|
||||
exports.isCacheDebuggingEnabled = isCacheDebuggingEnabled;
|
||||
function getCacheReadTimeoutMs() {
|
||||
return parseInt(core.getInput(CACHE_TIMEOUT_PARAMETER)) * 1000;
|
||||
}
|
||||
class CacheKey {
|
||||
constructor(key, restoreKeys) {
|
||||
this.key = key;
|
||||
|
@ -65510,7 +65514,9 @@ function restoreCache(cachePath, cacheKey, cacheRestoreKeys, listener) {
|
|||
return __awaiter(this, void 0, void 0, function* () {
|
||||
listener.markRequested(cacheKey, cacheRestoreKeys);
|
||||
try {
|
||||
const restoredEntry = yield cache.restoreCache(cachePath, cacheKey, cacheRestoreKeys);
|
||||
const restoredEntry = yield cache.restoreCache(cachePath, cacheKey, cacheRestoreKeys, {
|
||||
segmentTimeoutInMs: getCacheReadTimeoutMs()
|
||||
});
|
||||
if (restoredEntry !== undefined) {
|
||||
listener.markRestored(restoredEntry.key, restoredEntry.size);
|
||||
}
|
||||
|
|
2
dist/post/index.js.map
vendored
2
dist/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue