diff --git a/.circleci/config.yml b/.circleci/config.yml index b5432fa..44e2be1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,32 +11,6 @@ executors: working_directory: ~/project -commands: - install_rust_toolchain: - steps: - - run: - name: Install Rust nightly - command: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly - source "$HOME/.cargo/env" - - install_foundry: - steps: - - run: - name: Install Foundry - command: | - curl -L https://foundry.paradigm.xyz | bash - export PATH="$PATH:/root/.foundry/bin" - foundryup --version nightly - - install_just: - steps: - - run: - name: Install just - command: | - curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin - - jobs: rust-init: executor: default @@ -52,6 +26,26 @@ jobs: root: . paths: - . + cargo-tests: + executor: default + environment: + CARGO_TERM_COLOR: always + steps: + - attach_workspace: + at: . + - restore_cache: + keys: + - rust-cache-v1-{{ checksum "Cargo.lock" }} + - rust-cache-v1- + - run: + name: Run fuzz tests + command: cargo run --release -- -m 100 -t 4 --diff-count 50000 + no_output_timeout: 20m + - save_cache: + key: rust-cache-v1-{{ checksum "Cargo.lock" }} + paths: + - ~/.cargo + - target foundry-check: executor: default @@ -82,4 +76,4 @@ workflows: rust-test-workflow: jobs: - rust-init - \ No newline at end of file + - cargo-tests \ No newline at end of file