Caching cleanup
parent
8a726cf0bc
commit
a7a8661484
|
|
@ -68,7 +68,7 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
AWS_BASE_STACK_NAME: game-ci-stack-integration-tests
|
AWS_BASE_STACK_NAME: game-ci-stack-integration-tests
|
||||||
CLOUD_RUNNER_TESTS: true
|
CLOUD_RUNNER_TESTS: true
|
||||||
INIT_HOOK: tail -f /var/log/syslog | xargs -I{} gcloud logging write game-ci "{}"
|
INIT_HOOK: tail -f /var/log/cloud-runner-logs | xargs -I{} gcloud logging write game-ci "{}"
|
||||||
- uses: ./
|
- uses: ./
|
||||||
id: aws-fargate-unity-build
|
id: aws-fargate-unity-build
|
||||||
env:
|
env:
|
||||||
|
|
@ -77,7 +77,7 @@ jobs:
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
AWS_DEFAULT_REGION: eu-west-2
|
AWS_DEFAULT_REGION: eu-west-2
|
||||||
DEBUG: true
|
DEBUG: true
|
||||||
INIT_HOOK: tail -f /var/log/syslog | xargs -I{} gcloud logging write game-ci "{}"
|
INIT_HOOK: tail -f /var/log/cloud-runner-logs | xargs -I{} gcloud logging write game-ci "{}"
|
||||||
with:
|
with:
|
||||||
cloudRunnerCluster: aws
|
cloudRunnerCluster: aws
|
||||||
versioning: None
|
versioning: None
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ jobs:
|
||||||
GCP_PROJECT: unitykubernetesbuilder
|
GCP_PROJECT: unitykubernetesbuilder
|
||||||
GCP_LOG_NAME: game-ci
|
GCP_LOG_NAME: game-ci
|
||||||
CLOUD_RUNNER_TESTS: true
|
CLOUD_RUNNER_TESTS: true
|
||||||
INIT_HOOK: tail -f /var/log/syslog | xargs -I{} gcloud logging write game-ci "{}"
|
INIT_HOOK: tail -f /var/log/cloud-runner-logs | xargs -I{} gcloud logging write game-ci "{}"
|
||||||
# Use FUSE to mount a storage bucket to a cache folder
|
# Use FUSE to mount a storage bucket to a cache folder
|
||||||
EXPERIMENTAL_HOOK: |
|
EXPERIMENTAL_HOOK: |
|
||||||
- name: FUSE filesystem to s3 for global scale caching
|
- name: FUSE filesystem to s3 for global scale caching
|
||||||
|
|
@ -99,7 +99,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
CloudRunnerBranch: remote-builder/unified-providers
|
CloudRunnerBranch: remote-builder/unified-providers
|
||||||
DEBUG: true
|
DEBUG: true
|
||||||
INIT_HOOK: tail -f /var/log/syslog | xargs -I{} gcloud logging write game-ci "{}"
|
INIT_HOOK: tail -f /var/log/cloud-runner-logs | xargs -I{} gcloud logging write game-ci "{}"
|
||||||
with:
|
with:
|
||||||
cloudRunnerCluster: k8s
|
cloudRunnerCluster: k8s
|
||||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
|
|
||||||
|
|
@ -2579,10 +2579,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
__setModuleDefault(result, mod);
|
__setModuleDefault(result, mod);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
const core = __importStar(__webpack_require__(42186));
|
const core = __importStar(__webpack_require__(42186));
|
||||||
const child_process_1 = __webpack_require__(63129);
|
const child_process_1 = __webpack_require__(63129);
|
||||||
const __1 = __webpack_require__(41359);
|
const __1 = __webpack_require__(41359);
|
||||||
|
const fs_1 = __importDefault(__webpack_require__(35747));
|
||||||
class CloudRunnerLogger {
|
class CloudRunnerLogger {
|
||||||
static setup() {
|
static setup() {
|
||||||
this.timestamp = this.createTimestamp();
|
this.timestamp = this.createTimestamp();
|
||||||
|
|
@ -2590,15 +2594,19 @@ class CloudRunnerLogger {
|
||||||
}
|
}
|
||||||
static log(message) {
|
static log(message) {
|
||||||
core.info(message);
|
core.info(message);
|
||||||
|
fs_1.default.appendFile('/var/log/cloud-runner-logs', message, () => { });
|
||||||
}
|
}
|
||||||
static logWarning(message) {
|
static logWarning(message) {
|
||||||
core.warning(message);
|
core.warning(message);
|
||||||
|
fs_1.default.appendFile('/var/log/cloud-runner-logs', message, () => { });
|
||||||
}
|
}
|
||||||
static logLine(message) {
|
static logLine(message) {
|
||||||
core.info(`${message}\n`);
|
core.info(`${message}\n`);
|
||||||
|
fs_1.default.appendFile('/var/log/cloud-runner-logs', message, () => { });
|
||||||
}
|
}
|
||||||
static error(message) {
|
static error(message) {
|
||||||
core.error(message);
|
core.error(message);
|
||||||
|
fs_1.default.appendFile('/var/log/cloud-runner-logs', message, () => { });
|
||||||
}
|
}
|
||||||
static logWithTime(message) {
|
static logWithTime(message) {
|
||||||
const newTimestamp = this.createTimestamp();
|
const newTimestamp = this.createTimestamp();
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,7 @@
|
||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
import { exec } from 'child_process';
|
import { exec } from 'child_process';
|
||||||
import { Input } from '../..';
|
import { Input } from '../..';
|
||||||
|
import fs from 'fs';
|
||||||
|
|
||||||
class CloudRunnerLogger {
|
class CloudRunnerLogger {
|
||||||
private static timestamp: number;
|
private static timestamp: number;
|
||||||
|
|
@ -13,18 +14,22 @@ class CloudRunnerLogger {
|
||||||
|
|
||||||
public static log(message: string) {
|
public static log(message: string) {
|
||||||
core.info(message);
|
core.info(message);
|
||||||
|
fs.appendFile('/var/log/cloud-runner-logs', message, () => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
public static logWarning(message: string) {
|
public static logWarning(message: string) {
|
||||||
core.warning(message);
|
core.warning(message);
|
||||||
|
fs.appendFile('/var/log/cloud-runner-logs', message, () => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
public static logLine(message: string) {
|
public static logLine(message: string) {
|
||||||
core.info(`${message}\n`);
|
core.info(`${message}\n`);
|
||||||
|
fs.appendFile('/var/log/cloud-runner-logs', message, () => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
public static error(message: string) {
|
public static error(message: string) {
|
||||||
core.error(message);
|
core.error(message);
|
||||||
|
fs.appendFile('/var/log/cloud-runner-logs', message, () => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
public static logWithTime(message: string) {
|
public static logWithTime(message: string) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue