Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/crates-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ jobs:
- name: Use nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Download packaged crate
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: crate
path: dist
Expand Down
19 changes: 14 additions & 5 deletions contrib/release/verify-published.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,17 @@ published_sha="$(poll "${CRATES_IO_ATTEMPTS:-30}" \
die "checksum mismatch: crates.io $published_sha vs local $local_sha"
echo "crates.io checksum matches the attested .crate ($local_sha)"

echo "Waiting for docs.rs to build $crate $version (${DOCS_RS_ATTEMPTS:-60} checks, ${interval}s apart)"
poll "${DOCS_RS_ATTEMPTS:-60}" \
"https://docs.rs/crate/$crate/$version/status.json" 'select(.doc_status == true) | "built"' >/dev/null ||
die "docs.rs did not build $crate $version"
echo "docs.rs built $crate $version"
# docs.rs builds documentation only for crates with a library target;
# binary-only crates (e.g. payjoin-cli) never reach doc_status == true.
if cargo metadata --format-version 1 --no-deps 2>/dev/null |
jq -e --arg c "$crate" \
'any(.packages[] | select(.name == $c) | .targets[].kind[]; . | test("^(lib|rlib|dylib|cdylib|staticlib|proc-macro)$"))' \
>/dev/null; then
echo "Waiting for docs.rs to build $crate $version (${DOCS_RS_ATTEMPTS:-60} checks, ${interval}s apart)"
poll "${DOCS_RS_ATTEMPTS:-60}" \
"https://docs.rs/crate/$crate/$version/status.json" 'select(.doc_status == true) | "built"' >/dev/null ||
die "docs.rs did not build $crate $version"
echo "docs.rs built $crate $version"
else
echo "Skipping docs.rs check for $crate (no library target)"
fi
Loading