Caching cleanup
parent
0430794ca9
commit
d56ae05425
|
|
@ -66,7 +66,8 @@ jobs:
|
||||||
CLOUD_RUNNER_BRANCH: remote-builder/unified-providers
|
CLOUD_RUNNER_BRANCH: remote-builder/unified-providers
|
||||||
PROJECT_PATH: ${{ matrix.projectPath }}
|
PROJECT_PATH: ${{ matrix.projectPath }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
AWS_BASE_STACK_NAME: game-ci-stack-integration-tests
|
TARGET_PLATFORM: ${{ matrix.targetPlatform }}
|
||||||
|
AWS_BASE_STACK_NAME: game-ci-github-automation
|
||||||
CLOUD_RUNNER_TESTS: true
|
CLOUD_RUNNER_TESTS: true
|
||||||
- uses: ./
|
- uses: ./
|
||||||
id: aws-fargate-unity-build
|
id: aws-fargate-unity-build
|
||||||
|
|
@ -76,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: touch cloud-runner-logs && tail -f cloud-runner-logs | xargs -I{} gcloud logging write game-ci "{}"
|
INIT_HOOK: touch /cloud-runner-logs && tail -f /cloud-runner-logs | xargs -I{} gcloud logging write game-ci "{}"
|
||||||
with:
|
with:
|
||||||
cloudRunnerCluster: aws
|
cloudRunnerCluster: aws
|
||||||
versioning: None
|
versioning: None
|
||||||
|
|
@ -84,7 +85,7 @@ jobs:
|
||||||
unityVersion: ${{ matrix.unityVersion }}
|
unityVersion: ${{ matrix.unityVersion }}
|
||||||
targetPlatform: ${{ matrix.targetPlatform }}
|
targetPlatform: ${{ matrix.targetPlatform }}
|
||||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
awsBaseStackName: game-ci-stack-integration-tests
|
awsBaseStackName: game-ci-github-automation
|
||||||
CloudRunnerBranch: remote-builder/unified-providers
|
CloudRunnerBranch: remote-builder/unified-providers
|
||||||
cloudRunnerTests: true
|
cloudRunnerTests: true
|
||||||
postBuildSteps: |
|
postBuildSteps: |
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
CloudRunnerBranch: remote-builder/unified-providers
|
CloudRunnerBranch: remote-builder/unified-providers
|
||||||
DEBUG: true
|
DEBUG: true
|
||||||
INIT_HOOK: touch /var/log/cloud-runner-logs && tail -f /var/log/cloud-runner-logs | xargs -I{} gcloud logging write game-ci "{}"
|
INIT_HOOK: touch /cloud-runner-logs && tail -f /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 }}
|
||||||
|
|
@ -106,7 +106,7 @@ jobs:
|
||||||
kubeConfig: ${{ steps.read-base64.outputs.base64 }}
|
kubeConfig: ${{ steps.read-base64.outputs.base64 }}
|
||||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
projectPath: test-project
|
projectPath: test-project
|
||||||
unityVersion: 2019.3.15f1
|
unityVersion: ${{ matrix.targetPlatform }}
|
||||||
versioning: None
|
versioning: None
|
||||||
cloudRunnerTests: true
|
cloudRunnerTests: true
|
||||||
postBuildSteps: |
|
postBuildSteps: |
|
||||||
|
|
|
||||||
|
|
@ -2588,6 +2588,7 @@ 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));
|
const fs_1 = __importDefault(__webpack_require__(35747));
|
||||||
|
const path_1 = __importDefault(__webpack_require__(85622));
|
||||||
class CloudRunnerLogger {
|
class CloudRunnerLogger {
|
||||||
static setup() {
|
static setup() {
|
||||||
this.timestamp = this.createTimestamp();
|
this.timestamp = this.createTimestamp();
|
||||||
|
|
@ -2647,6 +2648,7 @@ class CloudRunnerLogger {
|
||||||
CloudRunnerLogger.child.kill(0);
|
CloudRunnerLogger.child.kill(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
CloudRunnerLogger.logsFile = path_1.default.join('/', 'cloud-runner-logs');
|
||||||
exports.default = CloudRunnerLogger;
|
exports.default = CloudRunnerLogger;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -2,10 +2,12 @@ import * as core from '@actions/core';
|
||||||
import { ChildProcess, exec } from 'child_process';
|
import { ChildProcess, exec } from 'child_process';
|
||||||
import { Input } from '../..';
|
import { Input } from '../..';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
class CloudRunnerLogger {
|
class CloudRunnerLogger {
|
||||||
private static timestamp: number;
|
private static timestamp: number;
|
||||||
private static globalTimestamp: number;
|
private static globalTimestamp: number;
|
||||||
|
private static readonly logsFile: string = path.join('/', 'cloud-runner-logs');
|
||||||
|
|
||||||
public static setup() {
|
public static setup() {
|
||||||
this.timestamp = this.createTimestamp();
|
this.timestamp = this.createTimestamp();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue