diff --git a/.circleci/config.yml b/.circleci/config.yml index e91dd6bb4d..90b0cd595a 100755 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2449a7df2a..21889003a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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