xref: /aosp_15_r20/external/crosvm/infra/cipd/package_cargo_nextest.sh (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1#!/usr/bin/env bash
2# Copyright 2022 The ChromiumOS Authors
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6set -ex
7
8BUILD_DIR=$(mktemp -d)
9cd "$BUILD_DIR" || exit 1
10
11CIPD_ARGS=(
12    -pkg-var "description:cargo-nextest modern test runner for cargo"
13    -install-mode copy
14    -ref latest
15)
16
17
18cd $(mktemp -d)
19curl -L "https://get.nexte.st/latest/windows" | jar xv
20cipd create -in "." -name "crosvm/cargo-nextest/windows-amd64" "${CIPD_ARGS[@]}"
21
22cd $(mktemp -d)
23curl -L "https://get.nexte.st/latest/linux" | tar zxv
24cipd create -in "." -name "crosvm/cargo-nextest/linux-amd64" "${CIPD_ARGS[@]}"
25
26