run builder in builder
parent
404dba1fc1
commit
da64845ac6
|
|
@ -40,7 +40,6 @@ const core = __importStar(__webpack_require__(42186));
|
||||||
const model_1 = __webpack_require__(41359);
|
const model_1 = __webpack_require__(41359);
|
||||||
function run() {
|
function run() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
core.info('running builder --- ');
|
|
||||||
try {
|
try {
|
||||||
model_1.Action.checkCompatibility();
|
model_1.Action.checkCompatibility();
|
||||||
model_1.Cache.verify();
|
model_1.Cache.verify();
|
||||||
|
|
@ -2103,7 +2102,6 @@ class RemoteBuilder {
|
||||||
echo "Cloning utility repositories required for building:"
|
echo "Cloning utility repositories required for building:"
|
||||||
git clone -q https://${buildParameters.githubToken}@github.com/game-ci/unity-builder.git ${builderPathFull}
|
git clone -q https://${buildParameters.githubToken}@github.com/game-ci/unity-builder.git ${builderPathFull}
|
||||||
git clone -q https://${buildParameters.githubToken}@github.com/game-ci/steam-deploy.git ${steamPathFull}
|
git clone -q https://${buildParameters.githubToken}@github.com/game-ci/steam-deploy.git ${steamPathFull}
|
||||||
node ${builderPathFull}/dist/index.js
|
|
||||||
cd ${repoPathFull}
|
cd ${repoPathFull}
|
||||||
# DISABLE LFS
|
# DISABLE LFS
|
||||||
git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f"
|
git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f"
|
||||||
|
|
@ -2114,6 +2112,7 @@ class RemoteBuilder {
|
||||||
git remote add origin https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git
|
git remote add origin https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git
|
||||||
git fetch origin
|
git fetch origin
|
||||||
git reset --hard $GITHUB_SHA
|
git reset --hard $GITHUB_SHA
|
||||||
|
git lfs ls-files --all
|
||||||
echo ''
|
echo ''
|
||||||
echo "Combining LFS hash files into one hash, this is used as the cache key:"
|
echo "Combining LFS hash files into one hash, this is used as the cache key:"
|
||||||
git lfs ls-files -l | cut -d' ' -f1 | sort > ${repoPathFull}/lfsSum.txt
|
git lfs ls-files -l | cut -d' ' -f1 | sort > ${repoPathFull}/lfsSum.txt
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -2,7 +2,6 @@ import * as core from '@actions/core';
|
||||||
import { Action, BuildParameters, Cache, Docker, ImageTag, Output, RemoteBuilder } from './model';
|
import { Action, BuildParameters, Cache, Docker, ImageTag, Output, RemoteBuilder } from './model';
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
core.info('running builder --- ');
|
|
||||||
try {
|
try {
|
||||||
Action.checkCompatibility();
|
Action.checkCompatibility();
|
||||||
Cache.verify();
|
Cache.verify();
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,6 @@ class RemoteBuilder {
|
||||||
echo "Cloning utility repositories required for building:"
|
echo "Cloning utility repositories required for building:"
|
||||||
git clone -q https://${buildParameters.githubToken}@github.com/game-ci/unity-builder.git ${builderPathFull}
|
git clone -q https://${buildParameters.githubToken}@github.com/game-ci/unity-builder.git ${builderPathFull}
|
||||||
git clone -q https://${buildParameters.githubToken}@github.com/game-ci/steam-deploy.git ${steamPathFull}
|
git clone -q https://${buildParameters.githubToken}@github.com/game-ci/steam-deploy.git ${steamPathFull}
|
||||||
node ${builderPathFull}/dist/index.js
|
|
||||||
cd ${repoPathFull}
|
cd ${repoPathFull}
|
||||||
# DISABLE LFS
|
# DISABLE LFS
|
||||||
git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f"
|
git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f"
|
||||||
|
|
@ -122,6 +121,7 @@ class RemoteBuilder {
|
||||||
git remote add origin https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git
|
git remote add origin https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git
|
||||||
git fetch origin
|
git fetch origin
|
||||||
git reset --hard $GITHUB_SHA
|
git reset --hard $GITHUB_SHA
|
||||||
|
git lfs ls-files --all
|
||||||
echo ''
|
echo ''
|
||||||
echo "Combining LFS hash files into one hash, this is used as the cache key:"
|
echo "Combining LFS hash files into one hash, this is used as the cache key:"
|
||||||
git lfs ls-files -l | cut -d' ' -f1 | sort > ${repoPathFull}/lfsSum.txt
|
git lfs ls-files -l | cut -d' ' -f1 | sort > ${repoPathFull}/lfsSum.txt
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue