Caching cleanup
							parent
							
								
									8a726cf0bc
								
							
						
					
					
						commit
						a7a8661484
					
				|  | @ -68,7 +68,7 @@ jobs: | |||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|           AWS_BASE_STACK_NAME: game-ci-stack-integration-tests | ||||
|           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: ./ | ||||
|         id: aws-fargate-unity-build | ||||
|         env: | ||||
|  | @ -77,7 +77,7 @@ jobs: | |||
|           AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||||
|           AWS_DEFAULT_REGION: eu-west-2 | ||||
|           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: | ||||
|           cloudRunnerCluster: aws | ||||
|           versioning: None | ||||
|  |  | |||
|  | @ -67,7 +67,7 @@ jobs: | |||
|           GCP_PROJECT: unitykubernetesbuilder | ||||
|           GCP_LOG_NAME: game-ci | ||||
|           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 | ||||
|           EXPERIMENTAL_HOOK: | | ||||
|             - name: FUSE filesystem to s3 for global scale caching | ||||
|  | @ -99,7 +99,7 @@ jobs: | |||
|         env: | ||||
|           CloudRunnerBranch: remote-builder/unified-providers | ||||
|           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: | ||||
|           cloudRunnerCluster: k8s | ||||
|           UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||||
|  |  | |||
|  | @ -2579,10 +2579,14 @@ var __importStar = (this && this.__importStar) || function (mod) { | |||
|     __setModuleDefault(result, mod); | ||||
|     return result; | ||||
| }; | ||||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||||
|     return (mod && mod.__esModule) ? mod : { "default": mod }; | ||||
| }; | ||||
| Object.defineProperty(exports, "__esModule", ({ value: true })); | ||||
| const core = __importStar(__webpack_require__(42186)); | ||||
| const child_process_1 = __webpack_require__(63129); | ||||
| const __1 = __webpack_require__(41359); | ||||
| const fs_1 = __importDefault(__webpack_require__(35747)); | ||||
| class CloudRunnerLogger { | ||||
|     static setup() { | ||||
|         this.timestamp = this.createTimestamp(); | ||||
|  | @ -2590,15 +2594,19 @@ class CloudRunnerLogger { | |||
|     } | ||||
|     static log(message) { | ||||
|         core.info(message); | ||||
|         fs_1.default.appendFile('/var/log/cloud-runner-logs', message, () => { }); | ||||
|     } | ||||
|     static logWarning(message) { | ||||
|         core.warning(message); | ||||
|         fs_1.default.appendFile('/var/log/cloud-runner-logs', message, () => { }); | ||||
|     } | ||||
|     static logLine(message) { | ||||
|         core.info(`${message}\n`); | ||||
|         fs_1.default.appendFile('/var/log/cloud-runner-logs', message, () => { }); | ||||
|     } | ||||
|     static error(message) { | ||||
|         core.error(message); | ||||
|         fs_1.default.appendFile('/var/log/cloud-runner-logs', message, () => { }); | ||||
|     } | ||||
|     static logWithTime(message) { | ||||
|         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 { exec } from 'child_process'; | ||||
| import { Input } from '../..'; | ||||
| import fs from 'fs'; | ||||
| 
 | ||||
| class CloudRunnerLogger { | ||||
|   private static timestamp: number; | ||||
|  | @ -13,18 +14,22 @@ class CloudRunnerLogger { | |||
| 
 | ||||
|   public static log(message: string) { | ||||
|     core.info(message); | ||||
|     fs.appendFile('/var/log/cloud-runner-logs', message, () => {}); | ||||
|   } | ||||
| 
 | ||||
|   public static logWarning(message: string) { | ||||
|     core.warning(message); | ||||
|     fs.appendFile('/var/log/cloud-runner-logs', message, () => {}); | ||||
|   } | ||||
| 
 | ||||
|   public static logLine(message: string) { | ||||
|     core.info(`${message}\n`); | ||||
|     fs.appendFile('/var/log/cloud-runner-logs', message, () => {}); | ||||
|   } | ||||
| 
 | ||||
|   public static error(message: string) { | ||||
|     core.error(message); | ||||
|     fs.appendFile('/var/log/cloud-runner-logs', message, () => {}); | ||||
|   } | ||||
| 
 | ||||
|   public static logWithTime(message: string) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue