mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-22 22:44:47 +03:00
Move docs CI to circle
This commit is contained in:
parent
cccd861e81
commit
3cafd3ec32
@ -190,15 +190,17 @@ jobs:
|
|||||||
- ~/.cargo
|
- ~/.cargo
|
||||||
- target
|
- target
|
||||||
|
|
||||||
check-style:
|
clippy-style-docs:
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/rust:1.82
|
- image: cimg/rust:1.82
|
||||||
resource_class: xlarge
|
resource_class: large
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- install_rust_nightly
|
- restore_cache:
|
||||||
- setup_environment:
|
keys:
|
||||||
cache_key: leo-fmt-cache
|
- cargo-v1-{{ arch }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}
|
||||||
|
- cargo-v1-{{ arch }}-{{ checksum "Cargo.toml" }}
|
||||||
|
- cargo-v1-{{ arch }}
|
||||||
- run:
|
- run:
|
||||||
name: Update Submodules
|
name: Update Submodules
|
||||||
command: git submodule update --init --recursive
|
command: git submodule update --init --recursive
|
||||||
@ -206,28 +208,25 @@ jobs:
|
|||||||
name: Check style
|
name: Check style
|
||||||
no_output_timeout: 35m
|
no_output_timeout: 35m
|
||||||
command: cargo +nightly fmt --all -- --check
|
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:
|
- run:
|
||||||
name: Clippy
|
name: Clippy
|
||||||
no_output_timeout: 35m
|
no_output_timeout: 35m
|
||||||
command: |
|
command: |
|
||||||
cargo clippy --workspace --all-targets -- -D warnings
|
cargo clippy --workspace --all-targets -- -D warnings
|
||||||
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
||||||
- clear_environment:
|
- run:
|
||||||
cache_key: leo-clippy-cache
|
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:
|
leo-executable:
|
||||||
docker:
|
docker:
|
||||||
|
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
@ -11,36 +11,6 @@ env:
|
|||||||
RUST_BACKTRACE: 0
|
RUST_BACKTRACE: 0
|
||||||
|
|
||||||
jobs:
|
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:
|
codecov:
|
||||||
name: Code Coverage
|
name: Code Coverage
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user