Move docs CI to circle

This commit is contained in:
Pranav Gaddamadugu 2024-11-01 13:25:02 -07:00
parent cccd861e81
commit 3cafd3ec32
2 changed files with 20 additions and 51 deletions

View File

@ -190,15 +190,17 @@ jobs:
- ~/.cargo
- target
check-style:
clippy-style-docs:
docker:
- image: cimg/rust:1.82
resource_class: xlarge
resource_class: large
steps:
- checkout
- install_rust_nightly
- setup_environment:
cache_key: leo-fmt-cache
- restore_cache:
keys:
- cargo-v1-{{ arch }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}
- cargo-v1-{{ arch }}-{{ checksum "Cargo.toml" }}
- cargo-v1-{{ arch }}
- run:
name: Update Submodules
command: git submodule update --init --recursive
@ -206,28 +208,25 @@ jobs:
name: Check style
no_output_timeout: 35m
command: cargo +nightly fmt --all -- --check
- clear_environment:
cache_key: leo-fmt-cache
clippy:
docker:
- image: cimg/rust:1.82
resource_class: xlarge
steps:
- checkout
- setup_environment:
cache_key: leo-clippy-cache
- run:
name: Update Submodules
command: git submodule update --init --recursive
- run:
name: Clippy
no_output_timeout: 35m
command: |
cargo clippy --workspace --all-targets -- -D warnings
cargo clippy --workspace --all-targets --all-features -- -D warnings
- clear_environment:
cache_key: leo-clippy-cache
- run:
name: Build Cargo Docs
env:
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options"
RUSTC_BOOTSTRAP: "1"
command: |
cargo doc --no-deps --document-private-items --workspace
rm -rf ./tests
- save_cache:
key: cargo-v1-{{ arch }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}
paths:
- ~/.cargo
- target
leo-executable:
docker:

View File

@ -11,36 +11,6 @@ env:
RUST_BACKTRACE: 0
jobs:
test-docs-and-build:
name: Test Docs and Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Install Rust Stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Set up rust-cache
uses: Swatinem/rust-cache@v2
- name: Build Release
run: cargo build --locked --release
- name: Build Cargo Docs
env:
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options"
RUSTC_BOOTSTRAP: "1"
run: |
cargo doc --no-deps --document-private-items --workspace
rm -rf ./tests
codecov:
name: Code Coverage
runs-on: ubuntu-latest