[
  {
    "cmd": [
      "cipd.bat",
      "ensure",
      "-root",
      "[CACHE]\\windows_sdk",
      "-ensure-file",
      "chrome_internal/third_party/sdk/windows uploaded:2018-06-13",
      "-max-threads",
      "0",
      "-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-uploaded:2018-06\", @@@",
      "@@@STEP_LOG_LINE@json.output@        \"package\": \"chrome_internal/third_party/sdk/windows\"@@@",
      "@@@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": [
      "python",
      "-u",
      "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
      "[CACHE]\\windows_sdk\\win_sdk\\bin\\SetEnv.x64.json",
      "/path/to/tmp/json"
    ],
    "name": "read SetEnv.x64.json",
    "~followup_annotations": [
      "@@@STEP_LOG_LINE@json.output@{@@@",
      "@@@STEP_LOG_LINE@json.output@  \"env\": {@@@",
      "@@@STEP_LOG_LINE@json.output@    \"PATH\": [@@@",
      "@@@STEP_LOG_LINE@json.output@      [@@@",
      "@@@STEP_LOG_LINE@json.output@        \"..\", @@@",
      "@@@STEP_LOG_LINE@json.output@        \"..\", @@@",
      "@@@STEP_LOG_LINE@json.output@        \"win_sdk\", @@@",
      "@@@STEP_LOG_LINE@json.output@        \"bin\", @@@",
      "@@@STEP_LOG_LINE@json.output@        \"x64\"@@@",
      "@@@STEP_LOG_LINE@json.output@      ]@@@",
      "@@@STEP_LOG_LINE@json.output@    ], @@@",
      "@@@STEP_LOG_LINE@json.output@    \"VSINSTALLDIR\": [@@@",
      "@@@STEP_LOG_LINE@json.output@      [@@@",
      "@@@STEP_LOG_LINE@json.output@        \"..\", @@@",
      "@@@STEP_LOG_LINE@json.output@        \"..\\\\\"@@@",
      "@@@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": [
      "gn",
      "gen",
      "out/Release"
    ],
    "env": {
      "VSINSTALLDIR": "[CACHE]\\windows_sdk"
    },
    "env_prefixes": {
      "PATH": [
        "[CACHE]\\windows_sdk\\win_sdk\\bin\\x64"
      ]
    },
    "name": "gn"
  },
  {
    "cmd": [
      "ninja",
      "-C",
      "out/Release"
    ],
    "env": {
      "VSINSTALLDIR": "[CACHE]\\windows_sdk"
    },
    "env_prefixes": {
      "PATH": [
        "[CACHE]\\windows_sdk\\win_sdk\\bin\\x64"
      ]
    },
    "name": "ninja"
  },
  {
    "cmd": [
      "taskkill.exe",
      "/f",
      "/t",
      "/im",
      "mspdbsrv.exe"
    ],
    "name": "taskkill mspdbsrv"
  },
  {
    "name": "$result"
  }
]