From e76e8e0eab17d73ac13184a334227cb733fb7c34 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 25 Dec 2022 11:50:57 +0900 Subject: [PATCH] Do not list tools names manually in tools/publish.sh --- DEVELOPMENT.md | 6 ++---- tools/publish.sh | 29 ++++++++--------------------- 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 37fc833e..8450a16d 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -12,8 +12,6 @@ See JSON files in `tools/codegen/base` directory for examples of the manifest. ./tools/manifest.sh ``` -3\. Add tool name to `tools` variable in `tools/publish.sh`. +3\. Add tool name to test matrix in `.github/workflows/ci.yml`. -4\. Add tool name to test matrix in `.github/workflows/ci.yml`. - -5\. Add tool name to table in "Supported tools" section in `README.md`. +4\. Add tool name to table in "Supported tools" section in `README.md`. diff --git a/tools/publish.sh b/tools/publish.sh index c9e9bd13..af493ad6 100755 --- a/tools/publish.sh +++ b/tools/publish.sh @@ -79,27 +79,14 @@ if [[ -n "${tags}" ]]; then git commit -m "Release ${version}" fi -tools=( - cargo-binstall - cargo-deny - cargo-hack - cargo-llvm-cov - cargo-minimal-versions - cargo-nextest - cargo-udeps - cargo-valgrind - cross - mdbook - mdbook-linkcheck - nextest - parse-changelog - protoc - shellcheck - shfmt - valgrind - wasm-pack - wasmtime -) +tools=() +for tool in tools/codegen/base/*.json; do + tools+=("$(basename "${tool%.*}")") +done +# Aliases +tools+=(nextest) +# Not manifest-base +tools+=(valgrind) ( set -x