Skip to content

Commit

Permalink
circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
raffaele-oplabs committed Jan 31, 2025
1 parent 4d9a42e commit ec3605f
Showing 1 changed file with 21 additions and 27 deletions.
48 changes: 21 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -82,4 +76,4 @@ workflows:
rust-test-workflow:
jobs:
- rust-init

- cargo-tests

0 comments on commit ec3605f

Please sign in to comment.