blob: 6f6c51c7183ba781bcbee51c217b05c2279e749b [file] [log] [blame]
[
{
"cmd": [],
"name": "checkout sources"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/cmake"
],
"infra_step": true,
"name": "checkout sources.makedirs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"init"
],
"cwd": "[START_DIR]/cmake",
"infra_step": true,
"name": "checkout sources.git init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"remote",
"add",
"origin",
"https://fuchsia.googlesource.com/third_party/github.com/Kitware/CMake"
],
"cwd": "[START_DIR]/cmake",
"infra_step": true,
"name": "checkout sources.git remote",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "checkout sources.cache",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/git/fuchsia.googlesource.com-third_party-github.com-Kitware-CMake"
],
"cwd": "[START_DIR]/cmake",
"infra_step": true,
"name": "checkout sources.cache.makedirs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"init",
"--bare"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-github.com-Kitware-CMake",
"infra_step": true,
"name": "checkout sources.cache.git init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"config",
"remote.origin.url",
"https://fuchsia.googlesource.com/third_party/github.com/Kitware/CMake"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-github.com-Kitware-CMake",
"infra_step": true,
"name": "checkout sources.cache.remote set-url",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"config",
"--replace-all",
"remote.origin.fetch",
"+refs/heads/*:refs/heads/*",
"\\+refs/heads/\\*:.*"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-github.com-Kitware-CMake",
"infra_step": true,
"name": "checkout sources.cache.git config",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--prune",
"--tags",
"origin"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-github.com-Kitware-CMake",
"infra_step": true,
"name": "checkout sources.cache.git fetch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/cmake/.git/objects/info"
],
"cwd": "[START_DIR]/cmake",
"infra_step": true,
"name": "checkout sources.cache.makedirs object/info",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CACHE]/git/fuchsia.googlesource.com-third_party-github.com-Kitware-CMake/objects\n",
"[START_DIR]/cmake/.git/objects/info/alternates"
],
"cwd": "[START_DIR]/cmake",
"infra_step": true,
"name": "checkout sources.cache.alternates",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@alternates@[CACHE]/git/fuchsia.googlesource.com-third_party-github.com-Kitware-CMake/objects@@@",
"@@@STEP_LOG_END@alternates@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--tags",
"origin"
],
"cwd": "[START_DIR]/cmake",
"infra_step": true,
"name": "checkout sources.git fetch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"checkout",
"-f",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
],
"cwd": "[START_DIR]/cmake",
"infra_step": true,
"name": "checkout sources.git checkout",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"rev-parse",
"HEAD"
],
"cwd": "[START_DIR]/cmake",
"infra_step": true,
"name": "checkout sources.git rev-parse",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"clean",
"-f",
"-d",
"-x"
],
"cwd": "[START_DIR]/cmake",
"infra_step": true,
"name": "checkout sources.git clean",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "checkout sources.submodule",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"submodule",
"sync"
],
"cwd": "[START_DIR]/cmake",
"infra_step": true,
"name": "checkout sources.submodule.git submodule sync",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"submodule",
"update",
"--init"
],
"cwd": "[START_DIR]/cmake",
"infra_step": true,
"name": "checkout sources.submodule.git submodule update",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [],
"name": "ensure packages"
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd",
"-ensure-file",
"fuchsia/third_party/clang/${platform} goma\ninfra/3pp/tools/cmake/${platform} version:3.13.5\ninfra/3pp/tools/ninja/${platform} version:1.9.0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure packages.ensure_installed",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"\": [@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-goma------------\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/third_party/clang/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-version:3.13.5--\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/3pp/tools/cmake/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-version:1.9.0---\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/3pp/tools/ninja/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ ]@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CLEANUP]/cmake_tmp_1/cmake_build_dir"
],
"infra_step": true,
"name": "create build dir"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CLEANUP]/cmake_tmp_1/cmake"
],
"infra_step": true,
"name": "create pkg dir"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"{\n \"directories\": {\n \"[START_DIR]/cipd\": {\n \"cipd_package\": {\n \"fuchsia/third_party/clang/resolved-platform\": {\n \"instance_id\": \"resolved-instance_id-of-goma------------\"\n }, \n \"infra/3pp/tools/cmake/resolved-platform\": {\n \"instance_id\": \"resolved-instance_id-of-version:3.13.5--\"\n }, \n \"infra/3pp/tools/ninja/resolved-platform\": {\n \"instance_id\": \"resolved-instance_id-of-version:1.9.0---\"\n }\n }, \n \"cipd_server_host\": \"chrome-infra-packages.appspot.com\"\n }, \n \"[START_DIR]/cmake\": {\n \"git_checkout\": {\n \"repo_url\": \"https://fuchsia.googlesource.com/third_party/github.com/Kitware/CMake\", \n \"revision\": \"deadbeef\"\n }\n }\n }\n}",
"[CLEANUP]/cmake_tmp_1/cmake/source_manifest.json"
],
"infra_step": true,
"name": "source manifest",
"~followup_annotations": [
"@@@STEP_LOG_LINE@source_manifest.json@{@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"directories\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"[START_DIR]/cipd\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"cipd_package\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"fuchsia/third_party/clang/resolved-platform\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"instance_id\": \"resolved-instance_id-of-goma------------\"@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }, @@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"infra/3pp/tools/cmake/resolved-platform\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"instance_id\": \"resolved-instance_id-of-version:3.13.5--\"@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }, @@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"infra/3pp/tools/ninja/resolved-platform\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"instance_id\": \"resolved-instance_id-of-version:1.9.0---\"@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }, @@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"cipd_server_host\": \"chrome-infra-packages.appspot.com\"@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }, @@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"[START_DIR]/cmake\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"git_checkout\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"repo_url\": \"https://fuchsia.googlesource.com/third_party/github.com/Kitware/CMake\", @@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"revision\": \"deadbeef\"@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }@@@",
"@@@STEP_LOG_LINE@source_manifest.json@}@@@",
"@@@STEP_LOG_END@source_manifest.json@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[CACHE]/macos_sdk",
"-ensure-file",
"infra/tools/mac_toolchain/${platform} git_revision:434f5462a77e7103f9d610fa5cabc426bb21502e",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure_installed",
"~followup_annotations": [
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"\": [@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-git_revision:434\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/mac_toolchain/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ ]@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"[CACHE]/macos_sdk/mac_toolchain",
"install",
"-kind",
"mac",
"-xcode-version",
"10b61",
"-output-dir",
"[CACHE]/macos_sdk/XCode.app"
],
"infra_step": true,
"name": "install xcode"
},
{
"cmd": [
"sudo",
"xcode-select",
"--switch",
"[CACHE]/macos_sdk/XCode.app"
],
"infra_step": true,
"name": "select XCode"
},
{
"cmd": [
"xcrun",
"--show-sdk-path"
],
"cwd": "[CLEANUP]/cmake_tmp_1/cmake_build_dir",
"name": "xcrun",
"~followup_annotations": [
"@@@STEP_LOG_LINE@raw_io.output[sdk-path]@/some/xcode/path@@@",
"@@@STEP_LOG_END@raw_io.output[sdk-path]@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd/bin/cmake",
"-GNinja",
"-DCMAKE_C_COMPILER=[START_DIR]/cipd/bin/clang",
"-DCMAKE_CXX_COMPILER=[START_DIR]/cipd/bin/clang++",
"-DCMAKE_ASM_COMPILER=[START_DIR]/cipd/bin/clang",
"-DCMAKE_MAKE_PROGRAM=[START_DIR]/cipd/ninja",
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_INSTALL_PREFIX=",
"-DCMAKE_USE_OPENSSL=OFF",
"-DCMake_BUILD_LTO=ON",
"-DBUILD_CursesDialog=OFF",
"-DCMAKE_SYSROOT=/some/xcode/path",
"-DCMAKE_SHARED_LINKER_FLAGS=-nostdlib++ [START_DIR]/cipd/lib/libc++.a",
"-DCMAKE_MODULE_LINKER_FLAGS=-nostdlib++ [START_DIR]/cipd/lib/libc++.a",
"-DCMAKE_EXE_LINKER_FLAGS=-nostdlib++ [START_DIR]/cipd/lib/libc++.a",
"[START_DIR]/cmake"
],
"cwd": "[CLEANUP]/cmake_tmp_1/cmake_build_dir",
"name": "configure"
},
{
"cmd": [
"[START_DIR]/cipd/ninja"
],
"cwd": "[CLEANUP]/cmake_tmp_1/cmake_build_dir",
"name": "build"
},
{
"cmd": [
"[START_DIR]/cipd/ninja",
"install/strip"
],
"cwd": "[CLEANUP]/cmake_tmp_1/cmake_build_dir",
"env": {
"DESTDIR": "[CLEANUP]/cmake_tmp_1/cmake"
},
"name": "install"
},
{
"cmd": [
"sudo",
"xcode-select",
"--reset"
],
"infra_step": true,
"name": "reset XCode"
},
{
"cmd": [
"[CLEANUP]/cmake_tmp_1/cmake_build_dir/bin/cmake",
"--version"
],
"name": "cmake version"
},
{
"cmd": [],
"name": "isolated",
"~followup_annotations": [
"@@@SET_BUILD_PROPERTY@isolated@\"[dummy hash]\"@@@"
]
},
{
"cmd": [],
"name": "isolated.ensure isolated",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[CACHE]/isolated_client",
"-ensure-file",
"infra/tools/luci/isolated/${platform} git_revision:305e79001db1846906c7136d90a863bee5bd3bfc",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "isolated.ensure isolated.ensure_installed",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"\": [@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-git_revision:305\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/isolated/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ ]@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"[CACHE]/isolated_client/isolated",
"archive",
"-verbose",
"-isolate-server",
"https://example.isolateserver.appspot.com",
"-namespace",
"default-gzip",
"-dump-hash",
"/path/to/tmp/",
"-dirs",
"[CLEANUP]/cmake_tmp_1/cmake:."
],
"infra_step": true,
"name": "isolated.isolate",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LINK@isolated UI@https://example.isolateserver.appspot.com/browse?namespace=default-gzip&hash=%5Bdummy+hash%5D@@@"
]
},
{
"cmd": [],
"name": "cipd"
},
{
"cmd": [
"cipd",
"pkg-build",
"-pkg-def",
"{\"data\": [{\"dir\": \".\", \"exclude\": []}, {\"version_file\": \".versions/cmake.cipd_version\"}], \"install_mode\": \"copy\", \"package\": \"fuchsia/third_party/cmake/${platform}\", \"root\": \"[CLEANUP]/cmake_tmp_1/cmake\"}",
"-out",
"[CLEANUP]/cmake.cipd",
"-hash-algo",
"sha256",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.build fuchsia/third_party/cmake/${platform}",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/third_party/cmake/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"cipd",
"search",
"fuchsia/third_party/cmake/${platform}",
"-tag",
"git_revision:deadbeef",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.cipd search fuchsia/third_party/cmake/${platform} git_revision:deadbeef",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": [@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/third_party/cmake/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ ]@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [],
"name": "cipd.Package is up-to-date",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"name": "$result"
}
]