-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: add lychee
#200
base: main
Are you sure you want to change the base?
ci: add lychee
#200
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,6 +123,9 @@ jobs: | |
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-gcc-13.2.0-6-any.pkg.tar.zst https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-gcc-libs-13.2.0-6-any.pkg.tar.zst | ||
pacman -U --noconfirm mingw-w64-x86_64-gcc-13.2.0-6-any.pkg.tar.zst mingw-w64-x86_64-gcc-libs-13.2.0-6-any.pkg.tar.zst | ||
|
||
- name: Install dependencies (All) | ||
run: cargo install lychee | ||
|
||
- name: Documentation | ||
run: cargo doc --workspace --all-features --no-deps | ||
|
||
|
@@ -135,6 +138,14 @@ jobs: | |
cargo test --all-features --workspace | ||
cargo test --package cuprate-blockchain --no-default-features --features redb --features service | ||
|
||
# Run `lychee` at: | ||
# 1. The repo root (excluding `target/`) | ||
# 2. Cuprate's cargo documentation | ||
- name: Lychee | ||
run: | | ||
lychee . --exclude target | ||
lychee target/doc/cuprate_* | ||
Comment on lines
+141
to
+147
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is put inside This allows for scanning generated documentation, e.g. |
||
|
||
# TODO: upload binaries with `actions/upload-artifact@v3` | ||
- name: Build | ||
run: cargo build --all-features --all-targets --workspace |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,7 +81,7 @@ pub struct TxRingMembersInfo { | |
/// - The input amounts are *ALL* 0 (RCT) | ||
/// - The top block hash is the same as when this data was retrieved (the blockchain state is unchanged). | ||
/// | ||
/// <https://cuprate.github.io/monero-book/consensus_rules/transactions/decoys.html> | ||
/// <https://cuprate.github.io/monero-book/consensus_rules/transactions/inputs.html> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
#[derive(Debug, Copy, Clone)] | ||
pub struct DecoyInfo { | ||
/// The number of inputs that have enough outputs on the chain to mix with. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Enable link caching. This can be helpful to avoid checking the same links on | ||
# multiple runs. | ||
cache = false | ||
|
||
# Verbose program output | ||
# Accepts log level: "error", "warn", "info", "debug", "trace" | ||
verbose = "debug" | ||
|
||
# Don't show interactive progress bar while checking links. | ||
no_progress = true | ||
|
||
# Exclude URLs and mail addresses from checking (supports regex). | ||
exclude = ["^file", "docs.rs"] | ||
|
||
# Exclude these filesystem paths from getting checked. | ||
exclude_path = [ | ||
# Contains local link meant for `lib.rs`. | ||
"storage/blockchain/README.md", | ||
# Contains local link. | ||
"books/protocol/src/consensus_rules/transactions/outputs.md", | ||
] | ||
|
||
# Exclude all private IPs from checking. | ||
# Equivalent to setting `exclude_private`, `exclude_link_local`, and | ||
# `exclude_loopback` to true. | ||
exclude_all_private = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm leaning towards not mentioning this in
CONTRIBUTING.md
since: