从 CI 下载预构建的 CAS 软件包
usage: fx download-cas-packages <package>[:<target>] [...]
Downloads one or more prebuilt CAS packages for the current host
architecture (${HOST_PLATFORM}) into `//local/<package>` and prints the
instructions needed to use them.
Arguments:
<package> Downloads the latest green build from CI
for the current host architecture:
- arm-trusted-firmware-qemu-bios (or atf)
- clang
- crosvm
- edk2
- fastboot
- gcc
- llvm
- qemu
- rust
- rust-bindgen
<package>:<target> Download `<package>` from a specific build or
builder. `<target>` can be:
- A LUCI / Milo build URL (e.g.
https://ci.chromium.org/ui/p/fuchsia/builders/.../b8666755190352362065/overview
or https://ci.chromium.org/b/8666755190352362065)
- A Buildbucket build ID (e.g. b8666755190352362065
or 8666755190352362065)
- A CAS digest (e.g. <sha256>/<size_bytes>)
- A LUCI builder URL or builder name (e.g.
fuchsia/toolchain.ci/rust_llvm-linux-x64 or
rust_llvm-linux-x64), which resolves to the
latest green build on that builder.
Examples:
fx download-cas-packages rust
fx download-cas-packages clang gcc llvm qemu rust rust-bindgen
fx download-cas-packages \
clang:https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64/b8666747240201415809/overview \
qemu:https://ci.chromium.org/ui/p/fuchsia/builders/ci/qemu-linux-x64/b8666747240201415809/overview \
rust:https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/rust_llvm-linux-x64/b8666927100188196401/overview \
rust-bindgen:https://ci.chromium.org/ui/p/fuchsia/builders/try.shadow/rust-bindgen-linux-x64/b8665837257839055009/overview