async pipeline
parent
598df6fb92
commit
6c1580ec85
|
|
@ -69,6 +69,7 @@ jobs:
|
||||||
versioning: None
|
versioning: None
|
||||||
CLOUD_RUNNER_CLUSTER: ${{ matrix.cloudRunnerCluster }}
|
CLOUD_RUNNER_CLUSTER: ${{ matrix.cloudRunnerCluster }}
|
||||||
AWS_BASE_STACK_NAME: game-ci-github-pipelines
|
AWS_BASE_STACK_NAME: game-ci-github-pipelines
|
||||||
|
CHECKS_API_TOKEN: ${{ secrets.CHECKS_API_TOKEN }}
|
||||||
- run: yarn run test "cloud-runner-run-twice-retaining" --detectOpenHandles --forceExit --runInBand
|
- run: yarn run test "cloud-runner-run-twice-retaining" --detectOpenHandles --forceExit --runInBand
|
||||||
if: matrix.CloudRunnerCluster == 'aws' || matrix.CloudRunnerCluster == 'k8s'
|
if: matrix.CloudRunnerCluster == 'aws' || matrix.CloudRunnerCluster == 'k8s'
|
||||||
timeout-minutes: 180
|
timeout-minutes: 180
|
||||||
|
|
@ -93,45 +94,6 @@ jobs:
|
||||||
versioning: None
|
versioning: None
|
||||||
CLOUD_RUNNER_CLUSTER: ${{ matrix.cloudRunnerCluster }}
|
CLOUD_RUNNER_CLUSTER: ${{ matrix.cloudRunnerCluster }}
|
||||||
AWS_BASE_STACK_NAME: game-ci-github-pipelines
|
AWS_BASE_STACK_NAME: game-ci-github-pipelines
|
||||||
asyncBuildTest:
|
|
||||||
name: Async Build Test
|
|
||||||
if: github.event.event_type != 'pull_request_target'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
cloudRunnerCluster:
|
|
||||||
- aws
|
|
||||||
#- local-docker
|
|
||||||
#- k8s
|
|
||||||
targetPlatform:
|
|
||||||
#- StandaloneOSX # Build a macOS standalone (Intel 64-bit).
|
|
||||||
- StandaloneWindows64 # Build a Windows 64-bit standalone.
|
|
||||||
#- StandaloneLinux64 # Build a Linux 64-bit standalone.
|
|
||||||
#- WebGL # WebGL.
|
|
||||||
#- iOS # Build an iOS player.
|
|
||||||
#- Android # Build an Android .apk.
|
|
||||||
steps:
|
|
||||||
- name: Checkout (default)
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
lfs: false
|
|
||||||
- run: yarn
|
|
||||||
- uses: ./
|
|
||||||
id: unity-build
|
|
||||||
timeout-minutes: 90
|
|
||||||
env:
|
|
||||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
||||||
with:
|
|
||||||
cloudRunnerTests: true
|
|
||||||
versioning: None
|
|
||||||
projectPath: test-project
|
|
||||||
gitPrivateToken: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
targetPlatform: ${{ matrix.targetPlatform }}
|
|
||||||
cloudRunnerCluster: ${{ matrix.cloudRunnerCluster }}
|
|
||||||
githubChecks: true
|
|
||||||
asyncCloudRunner: true
|
|
||||||
watchToEnd: false
|
|
||||||
localBuildTests:
|
localBuildTests:
|
||||||
name: Local Build Target Tests
|
name: Local Build Target Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
|
|
@ -5836,6 +5836,7 @@ class TaskParameterSerializer {
|
||||||
array = TaskParameterSerializer.tryAddInput(array, 'UNITY_PASSWORD');
|
array = TaskParameterSerializer.tryAddInput(array, 'UNITY_PASSWORD');
|
||||||
array = TaskParameterSerializer.tryAddInput(array, 'UNITY_LICENSE');
|
array = TaskParameterSerializer.tryAddInput(array, 'UNITY_LICENSE');
|
||||||
array = TaskParameterSerializer.tryAddInput(array, 'GIT_PRIVATE_TOKEN');
|
array = TaskParameterSerializer.tryAddInput(array, 'GIT_PRIVATE_TOKEN');
|
||||||
|
array = TaskParameterSerializer.tryAddInput(array, 'CHECKS_API_TOKEN');
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
static getValue(key) {
|
static getValue(key) {
|
||||||
|
|
@ -5893,6 +5894,8 @@ class AsyncWorkflow {
|
||||||
output += yield cloud_runner_1.default.Provider.runTaskInWorkflow(cloud_runner_1.default.buildParameters.buildGuid, `ubuntu`, `apt-get update > /dev/null
|
output += yield cloud_runner_1.default.Provider.runTaskInWorkflow(cloud_runner_1.default.buildParameters.buildGuid, `ubuntu`, `apt-get update > /dev/null
|
||||||
apt-get install -y curl tar tree npm git git-lfs jq git > /dev/null
|
apt-get install -y curl tar tree npm git git-lfs jq git > /dev/null
|
||||||
mkdir /builder
|
mkdir /builder
|
||||||
|
printenv
|
||||||
|
git config --global advice.detachedHead false
|
||||||
git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f
|
git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f
|
||||||
git config --global filter.lfs.process "git-lfs filter-process --skip
|
git config --global filter.lfs.process "git-lfs filter-process --skip
|
||||||
git clone -q -b ${cloud_runner_1.default.buildParameters.cloudRunnerBranch} ${cloud_runner_folders_1.CloudRunnerFolders.unityBuilderRepoUrl} /builder
|
git clone -q -b ${cloud_runner_1.default.buildParameters.cloudRunnerBranch} ${cloud_runner_folders_1.CloudRunnerFolders.unityBuilderRepoUrl} /builder
|
||||||
|
|
@ -5902,8 +5905,7 @@ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip
|
||||||
unzip awscliv2.zip
|
unzip awscliv2.zip
|
||||||
./aws/install
|
./aws/install
|
||||||
aws --version
|
aws --version
|
||||||
node /builder/dist/index.js -m async-workflow
|
node /builder/dist/index.js -m async-workflow`, `/${cloud_runner_folders_1.CloudRunnerFolders.buildVolumeFolder}`, `/${cloud_runner_folders_1.CloudRunnerFolders.buildVolumeFolder}/`, environmentVariables, [
|
||||||
`, `/${cloud_runner_folders_1.CloudRunnerFolders.buildVolumeFolder}`, `/${cloud_runner_folders_1.CloudRunnerFolders.buildVolumeFolder}/`, environmentVariables, [
|
|
||||||
...secrets,
|
...secrets,
|
||||||
...[
|
...[
|
||||||
{
|
{
|
||||||
|
|
@ -6327,10 +6329,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
const core_1 = __nccwpck_require__(76762);
|
|
||||||
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(22855));
|
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(22855));
|
||||||
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
|
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
|
||||||
const cloud_runner_options_1 = __importDefault(__nccwpck_require__(96552));
|
const cloud_runner_options_1 = __importDefault(__nccwpck_require__(96552));
|
||||||
|
const core_1 = __nccwpck_require__(76762);
|
||||||
class GitHub {
|
class GitHub {
|
||||||
static createGitHubCheck(summary) {
|
static createGitHubCheck(summary) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
|
@ -136870,7 +136872,7 @@ module.exports = {
|
||||||
MobileAnalytics: __nccwpck_require__(66690),
|
MobileAnalytics: __nccwpck_require__(66690),
|
||||||
OpsWorks: __nccwpck_require__(75691),
|
OpsWorks: __nccwpck_require__(75691),
|
||||||
OpsWorksCM: __nccwpck_require__(80388),
|
OpsWorksCM: __nccwpck_require__(80388),
|
||||||
Organizations: __nccwpck_require__(52560),
|
Organizations: __nccwpck_require__(44670),
|
||||||
Pinpoint: __nccwpck_require__(18388),
|
Pinpoint: __nccwpck_require__(18388),
|
||||||
Polly: __nccwpck_require__(97332),
|
Polly: __nccwpck_require__(97332),
|
||||||
RDS: __nccwpck_require__(71578),
|
RDS: __nccwpck_require__(71578),
|
||||||
|
|
@ -142355,7 +142357,7 @@ module.exports = AWS.OpsWorksCM;
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 52560:
|
/***/ 44670:
|
||||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
__nccwpck_require__(73639);
|
__nccwpck_require__(73639);
|
||||||
|
|
@ -165285,7 +165287,7 @@ module.exports = {
|
||||||
/***/ 83682:
|
/***/ 83682:
|
||||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
var register = __nccwpck_require__(44670)
|
var register = __nccwpck_require__(56190)
|
||||||
var addHook = __nccwpck_require__(5549)
|
var addHook = __nccwpck_require__(5549)
|
||||||
var removeHook = __nccwpck_require__(6819)
|
var removeHook = __nccwpck_require__(6819)
|
||||||
|
|
||||||
|
|
@ -165399,7 +165401,7 @@ function addHook(state, kind, name, hook) {
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 44670:
|
/***/ 56190:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
module.exports = register;
|
module.exports = register;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -146,6 +146,7 @@ export class TaskParameterSerializer {
|
||||||
array = TaskParameterSerializer.tryAddInput(array, 'UNITY_PASSWORD');
|
array = TaskParameterSerializer.tryAddInput(array, 'UNITY_PASSWORD');
|
||||||
array = TaskParameterSerializer.tryAddInput(array, 'UNITY_LICENSE');
|
array = TaskParameterSerializer.tryAddInput(array, 'UNITY_LICENSE');
|
||||||
array = TaskParameterSerializer.tryAddInput(array, 'GIT_PRIVATE_TOKEN');
|
array = TaskParameterSerializer.tryAddInput(array, 'GIT_PRIVATE_TOKEN');
|
||||||
|
array = TaskParameterSerializer.tryAddInput(array, 'CHECKS_API_TOKEN');
|
||||||
|
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,8 @@ export class AsyncWorkflow {
|
||||||
`apt-get update > /dev/null
|
`apt-get update > /dev/null
|
||||||
apt-get install -y curl tar tree npm git git-lfs jq git > /dev/null
|
apt-get install -y curl tar tree npm git git-lfs jq git > /dev/null
|
||||||
mkdir /builder
|
mkdir /builder
|
||||||
|
printenv
|
||||||
|
git config --global advice.detachedHead false
|
||||||
git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f
|
git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f
|
||||||
git config --global filter.lfs.process "git-lfs filter-process --skip
|
git config --global filter.lfs.process "git-lfs filter-process --skip
|
||||||
git clone -q -b ${CloudRunner.buildParameters.cloudRunnerBranch} ${CloudRunnerFolders.unityBuilderRepoUrl} /builder
|
git clone -q -b ${CloudRunner.buildParameters.cloudRunnerBranch} ${CloudRunnerFolders.unityBuilderRepoUrl} /builder
|
||||||
|
|
@ -29,8 +31,7 @@ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip
|
||||||
unzip awscliv2.zip
|
unzip awscliv2.zip
|
||||||
./aws/install
|
./aws/install
|
||||||
aws --version
|
aws --version
|
||||||
node /builder/dist/index.js -m async-workflow
|
node /builder/dist/index.js -m async-workflow`,
|
||||||
`,
|
|
||||||
`/${CloudRunnerFolders.buildVolumeFolder}`,
|
`/${CloudRunnerFolders.buildVolumeFolder}`,
|
||||||
`/${CloudRunnerFolders.buildVolumeFolder}/`,
|
`/${CloudRunnerFolders.buildVolumeFolder}/`,
|
||||||
environmentVariables,
|
environmentVariables,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { Octokit } from '@octokit/core';
|
|
||||||
import CloudRunnerLogger from './cloud-runner/services/cloud-runner-logger';
|
import CloudRunnerLogger from './cloud-runner/services/cloud-runner-logger';
|
||||||
import CloudRunner from './cloud-runner/cloud-runner';
|
import CloudRunner from './cloud-runner/cloud-runner';
|
||||||
import CloudRunnerOptions from './cloud-runner/cloud-runner-options';
|
import CloudRunnerOptions from './cloud-runner/cloud-runner-options';
|
||||||
|
import { Octokit } from '@octokit/core';
|
||||||
|
|
||||||
class GitHub {
|
class GitHub {
|
||||||
public static githubInputEnabled: boolean = true;
|
public static githubInputEnabled: boolean = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue