зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-03 22:35:50 +03:00
do not use RUSTDOCFLAGS environment variable for checking document generation
because it is used by all the dependencies and some package will break due to the flags in the variable.
Этот коммит содержится в:
7
.github/workflows/ci.yml
поставляемый
7
.github/workflows/ci.yml
поставляемый
@@ -64,15 +64,16 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@nightly
|
||||
- name: Run `cargo doc` with same configuration as docs.rs
|
||||
- name: Run `cargo rustdoc` with same configuration as docs.rs
|
||||
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
|
||||
|
||||
Ссылка в новой задаче
Block a user