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