async pipeline
parent
9ed1ef45f8
commit
75d856d47e
|
|
@ -0,0 +1,63 @@
|
||||||
|
name: Async Checks API
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
checksObject:
|
||||||
|
description: ''
|
||||||
|
required: true
|
||||||
|
default: ''
|
||||||
|
|
||||||
|
permissions: write-all
|
||||||
|
|
||||||
|
env:
|
||||||
|
GKE_ZONE: 'us-central1'
|
||||||
|
GKE_REGION: 'us-central1'
|
||||||
|
GKE_PROJECT: 'unitykubernetesbuilder'
|
||||||
|
GKE_CLUSTER: 'game-ci-github-pipelines'
|
||||||
|
GCP_LOGGING: true
|
||||||
|
GCP_PROJECT: unitykubernetesbuilder
|
||||||
|
GCP_LOG_FILE: ${{ github.workspace }}/cloud-runner-logs.txt
|
||||||
|
AWS_REGION: eu-west-2
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
AWS_DEFAULT_REGION: eu-west-2
|
||||||
|
AWS_BASE_STACK_NAME: game-ci-github-pipelines
|
||||||
|
CLOUD_RUNNER_BRANCH: ${{ github.ref }}
|
||||||
|
CLOUD_RUNNER_DEBUG: true
|
||||||
|
CLOUD_RUNNER_DEBUG_TREE: true
|
||||||
|
DEBUG: true
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
PROJECT_PATH: test-project
|
||||||
|
UNITY_VERSION: 2019.3.15f1
|
||||||
|
USE_IL2CPP: false
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
asyncChecks:
|
||||||
|
name: Async Checks
|
||||||
|
if: github.event.event_type != 'pull_request_target'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
cloudRunnerCluster:
|
||||||
|
- local-docker
|
||||||
|
steps:
|
||||||
|
- name: Checkout (default)
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
lfs: false
|
||||||
|
- run: yarn
|
||||||
|
- run: yarn run cli --help
|
||||||
|
- run: yarn run cli --m checks-update
|
||||||
|
timeout-minutes: 180
|
||||||
|
env:
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
PROJECT_PATH: test-project
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
TARGET_PLATFORM: StandaloneWindows64
|
||||||
|
cloudRunnerTests: true
|
||||||
|
versioning: None
|
||||||
|
CLOUD_RUNNER_CLUSTER: ${{ matrix.cloudRunnerCluster }}
|
||||||
|
AWS_BASE_STACK_NAME: game-ci-github-pipelines
|
||||||
|
CHECKS_UPDATE: ${{ github.event.inputs.checksObject }}
|
||||||
|
|
@ -4,6 +4,8 @@ on:
|
||||||
push: { branches: [cloud-runner-develop, cloud-runner-preview, main] }
|
push: { branches: [cloud-runner-develop, cloud-runner-preview, main] }
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions: write-all
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GKE_ZONE: 'us-central1'
|
GKE_ZONE: 'us-central1'
|
||||||
GKE_REGION: 'us-central1'
|
GKE_REGION: 'us-central1'
|
||||||
|
|
|
||||||
|
|
@ -582,6 +582,11 @@ class Cli {
|
||||||
return yield __1.CloudRunner.run(buildParameter, baseImage.toString());
|
return yield __1.CloudRunner.run(buildParameter, baseImage.toString());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
static checksUpdate() {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
core.info(`Checks Update`);
|
||||||
|
});
|
||||||
|
}
|
||||||
static GarbageCollect() {
|
static GarbageCollect() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const buildParameter = yield __1.BuildParameters.create();
|
const buildParameter = yield __1.BuildParameters.create();
|
||||||
|
|
@ -640,6 +645,9 @@ __decorate([
|
||||||
__decorate([
|
__decorate([
|
||||||
cli_functions_repository_1.CliFunction(`async-workflow`, `runs a cloud runner build`)
|
cli_functions_repository_1.CliFunction(`async-workflow`, `runs a cloud runner build`)
|
||||||
], Cli, "asyncronousWorkflow", null);
|
], Cli, "asyncronousWorkflow", null);
|
||||||
|
__decorate([
|
||||||
|
cli_functions_repository_1.CliFunction(`checks-update`, `runs a cloud runner build`)
|
||||||
|
], Cli, "checksUpdate", null);
|
||||||
__decorate([
|
__decorate([
|
||||||
cli_functions_repository_1.CliFunction(`garbage-collect`, `runs garbage collection`)
|
cli_functions_repository_1.CliFunction(`garbage-collect`, `runs garbage collection`)
|
||||||
], Cli, "GarbageCollect", null);
|
], Cli, "GarbageCollect", null);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -117,6 +117,11 @@ export class Cli {
|
||||||
return await CloudRunner.run(buildParameter, baseImage.toString());
|
return await CloudRunner.run(buildParameter, baseImage.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@CliFunction(`checks-update`, `runs a cloud runner build`)
|
||||||
|
public static async checksUpdate() {
|
||||||
|
core.info(`Checks Update`);
|
||||||
|
}
|
||||||
|
|
||||||
@CliFunction(`garbage-collect`, `runs garbage collection`)
|
@CliFunction(`garbage-collect`, `runs garbage collection`)
|
||||||
public static async GarbageCollect(): Promise<string> {
|
public static async GarbageCollect(): Promise<string> {
|
||||||
const buildParameter = await BuildParameters.create();
|
const buildParameter = await BuildParameters.create();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue