Loading .github/workflows/ci-sdk.yaml +1 −3 Original line number Diff line number Diff line Loading @@ -70,9 +70,7 @@ jobs: - name: Unused Dependencies run: cargo +nightly udeps - name: Additional per-crate checks run: ../tools/additional-per-crate-checks.sh ./sdk/ - name: Canary check run: ../tools/ci-cdk/canary-lambda/ci-check.sh run: ../tools/additional-per-crate-checks.sh ./sdk/ ../tools/ci-cdk/ env: # Disable incremental compilation to reduce disk space use CARGO_INCREMENTAL: 0 Loading tools/additional-per-crate-checks.sh +20 −10 Original line number Diff line number Diff line Loading @@ -4,22 +4,32 @@ # SPDX-License-Identifier: Apache-2.0. # if [[ $# -ne 1 ]]; then echo "Usage: $0 <runtime crate workspace path>" set -e # TTY colors C_CYAN='\033[1;36m' C_YELLOW='\033[1;33m' C_RESET='\033[0m' if [[ $# -lt 1 ]]; then echo "Usage: $0 [crate workspace path(s)...]" echo "Recursively visits 'additional-ci' scripts in the given directories and executes them." exit 1 fi cd $1 set -e for area in "$@"; do pushd "${area}" &>/dev/null echo -e "${C_CYAN}Scanning '${area}'...${C_RESET}" for path in *; do if [[ -d "${path}" && -f "${path}/Cargo.toml" && -f "${path}/additional-ci" ]]; then find . -name 'additional-ci' -print0 | while read -d $'\0' file; do echo echo "# Running additional checks for ${path}..." echo -e "${C_YELLOW}Running additional checks script '${file}'...${C_RESET}" echo pushd "${path}" &>/dev/null pushd "$(dirname ${file})" &>/dev/null ./additional-ci popd &>/dev/null fi done echo popd &>/dev/null done tools/ci-cdk/canary-lambda/ci-check.sh→tools/ci-cdk/canary-lambda/additional-ci +0 −1 Original line number Diff line number Diff line Loading @@ -13,5 +13,4 @@ if [[ "${GITHUB_ACTIONS}" == "true" ]]; then fi ./write-cargo-toml.py --path "${SDK_PATH}" cargo check cargo clippy Loading
.github/workflows/ci-sdk.yaml +1 −3 Original line number Diff line number Diff line Loading @@ -70,9 +70,7 @@ jobs: - name: Unused Dependencies run: cargo +nightly udeps - name: Additional per-crate checks run: ../tools/additional-per-crate-checks.sh ./sdk/ - name: Canary check run: ../tools/ci-cdk/canary-lambda/ci-check.sh run: ../tools/additional-per-crate-checks.sh ./sdk/ ../tools/ci-cdk/ env: # Disable incremental compilation to reduce disk space use CARGO_INCREMENTAL: 0 Loading
tools/additional-per-crate-checks.sh +20 −10 Original line number Diff line number Diff line Loading @@ -4,22 +4,32 @@ # SPDX-License-Identifier: Apache-2.0. # if [[ $# -ne 1 ]]; then echo "Usage: $0 <runtime crate workspace path>" set -e # TTY colors C_CYAN='\033[1;36m' C_YELLOW='\033[1;33m' C_RESET='\033[0m' if [[ $# -lt 1 ]]; then echo "Usage: $0 [crate workspace path(s)...]" echo "Recursively visits 'additional-ci' scripts in the given directories and executes them." exit 1 fi cd $1 set -e for area in "$@"; do pushd "${area}" &>/dev/null echo -e "${C_CYAN}Scanning '${area}'...${C_RESET}" for path in *; do if [[ -d "${path}" && -f "${path}/Cargo.toml" && -f "${path}/additional-ci" ]]; then find . -name 'additional-ci' -print0 | while read -d $'\0' file; do echo echo "# Running additional checks for ${path}..." echo -e "${C_YELLOW}Running additional checks script '${file}'...${C_RESET}" echo pushd "${path}" &>/dev/null pushd "$(dirname ${file})" &>/dev/null ./additional-ci popd &>/dev/null fi done echo popd &>/dev/null done
tools/ci-cdk/canary-lambda/ci-check.sh→tools/ci-cdk/canary-lambda/additional-ci +0 −1 Original line number Diff line number Diff line Loading @@ -13,5 +13,4 @@ if [[ "${GITHUB_ACTIONS}" == "true" ]]; then fi ./write-cargo-toml.py --path "${SDK_PATH}" cargo check cargo clippy