mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-02 18:20:29 +08:00
Remove Rust docs from CI
They aren't useful to us, and building them is the slowest step. We did the same for desktop.
This commit is contained in:
+2
-12
@@ -1,8 +1,8 @@
|
||||
# CI for the Rust workspace (crates/radicle-httpd, crates/radicle-search).
|
||||
#
|
||||
# Each step gets its own named cache volume. Clippy, test, and doc each produce a
|
||||
# Each step gets its own named cache volume. Clippy and test each produce a
|
||||
# different target directory, and a shared volume would let whichever step
|
||||
# commits last discard the other two, forcing a near-full rebuild every build.
|
||||
# commits last discard the other, forcing a near-full rebuild every build.
|
||||
#
|
||||
# These steps run on the agent rather than in a container, so ~-rooted cache
|
||||
# paths work. The toolchain version is not pinned here: rustup reads
|
||||
@@ -54,16 +54,6 @@ steps:
|
||||
- cargo test --workspace --all-features
|
||||
- cargo test -p radicle-httpd
|
||||
|
||||
- label: "📚 doc"
|
||||
key: doc
|
||||
timeout_in_minutes: 30
|
||||
cache:
|
||||
name: rust-doc
|
||||
paths: *cargo_cache
|
||||
commands:
|
||||
- *install_rust
|
||||
- RUSTDOCFLAGS="-D warnings" cargo doc --workspace --all-features
|
||||
|
||||
- label: "🦀 lint"
|
||||
key: lint
|
||||
timeout_in_minutes: 30
|
||||
|
||||
@@ -25,20 +25,6 @@ jobs:
|
||||
- name: Test httpd without search
|
||||
run: cargo test -p radicle-httpd
|
||||
|
||||
docs:
|
||||
name: Docs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: dtolnay/rust-toolchain@1.97.1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: ". -> target"
|
||||
- name: Docs
|
||||
run: cargo doc --workspace --all-features
|
||||
env:
|
||||
RUSTDOCFLAGS: -D warnings
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -43,7 +43,6 @@ RUSTFLAGS="-D warnings" cargo clippy -p radicle-httpd --no-default-features --te
|
||||
cargo fmt --all -- --check
|
||||
cargo test --workspace --all-features
|
||||
cargo test -p radicle-httpd
|
||||
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --all-features
|
||||
npm run test:e2e -- --project chromium
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user