forked from smithy-lang/smithy-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci
executable file
·25 lines (21 loc) · 653 Bytes
/
ci
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#
set -e
if [[ $# -lt 1 ]]; then
echo "Usage: ci <action> [args...]"
echo
echo "Runs a CI action from tools/ci-build/scripts within the Docker build image."
echo "Requires Docker and docker-compose to both be installed."
echo
echo "Note: Some actions may require 'aws-sdk-rust' and/or 'aws-doc-sdk-examples'"
echo "to be checked out in the same directory as 'smithy-rs'."
exit 1
fi
ACTION_NAME=$1
shift
ACTION_ARGS=("$@")
cd ..
make -f ./smithy-rs/ci.mk "${ACTION_NAME}" ARGS="${ACTION_ARGS[*]}"