Commit c9a52dc6 authored by Fabrice de Gans-Riberi's avatar Fabrice de Gans-Riberi Committed by Commit Bot

[Fuchsia] Package the http service into a CIPD archive.

This adds the http service package to a new CIPD archive.

Bug: 874155
Test: Locally, build still works.
Change-Id: I44937c496a1af342d0bf7f67581cef4c0fb83cb9
Reviewed-on: https://chromium-review.googlesource.com/c/1300674
Commit-Queue: Fabrice de Gans-Riberi <fdegans@chromium.org>
Reviewed-by: default avatarKevin Marshall <kmarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603615}
parent f3e8e6c7
......@@ -279,6 +279,7 @@ process_version("build_id") {
copy("restaged_packages") {
sources = [
"$root_gen_dir/webrunner/chromium/chromium.far",
"$root_gen_dir/webrunner/net_http/http/http.far",
"$root_gen_dir/webrunner/web_runner/web_runner.far",
]
outputs = [
......@@ -287,6 +288,7 @@ copy("restaged_packages") {
deps = [
":service_pkg",
":webrunner_pkg",
"net_http:http_pkg",
]
}
......
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Creates a package for the HTTP service binary.
# The ID of the target architecture (amd64, arm64) must be passed in as
# a pkg-var so that the packages can be archived at the appropriate location
# in the CIPD package hierarchy.
#
# pkg-var arguments:
# outdir: A fully qualified path to the build output directory.
# targetarch: The target architecture, either "amd64" or "arm64".
#
# To create a CIPD package, run the following command from the build output
# directory.
#
# $ cipd create --pkg-def ../../webrunner/cipd/http.yaml \
# -pkg-var targetarch:$TARGET_ARCH \
# -pkg-var outdir:`pwd` \
# -ref latest \
# -tag version:$(cat fuchsia_artifacts/build_id.txt)
#
# The most recent package can be discovered by searching for the "latest" ref:
#
# $ cipd describe chromium/fuchsia/http-$TARGET_ARCH -version latest
package: chromium/fuchsia/http-${targetarch}
description: Prebuilt HTTP service binary for Fuchsia.
root: ${outdir}/fuchsia_artifacts
data:
- file: http.far
- file: LICENSE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment