From 97fdef7d96cd94d496e53623dc9bb109fba477d5 Mon Sep 17 00:00:00 2001 From: rhysd Date: Sun, 1 Dec 2024 18:04:09 +0900 Subject: [PATCH] tmp --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e183cef..9101be3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,11 +68,12 @@ jobs: run: | set -e md="$(cargo metadata --format-version=1 | jq '.packages[] | select(.name=="tui-textarea") | .metadata.docs.rs')" - export RUSTDOCFLAGS="$(echo "$md" | jq -r '.["rustdoc-args"] | join(" ")') -D warnings" + rustdoc_args=($(echo "$md" | jq -r '.["rustdoc-args"] | join(" ")') -D warnings) features="$(echo "$md" | jq -r '.features | join(",")')" + set -x for target in $(echo "$md" | jq -r '.targets | join(" ")') do rustup target add "$target" - cargo doc -p tui-textarea "--features=$features" "--target=$target" + cargo rustdoc -p tui-textarea "--features=$features" "--target=$target" -- "${rustdoc_args[@]}" done