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 2a79498 commit f03c0b5
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ executors:
default:
docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:v0.47.3
rust:
docker:
- image: cimg/rust:1.75.0 # CircleCI's Rust Docker image
working_directory: ~/project


# Define reusable commands
Expand All @@ -27,7 +23,8 @@ commands:
name: Install Foundry
command: |
curl -L https://foundry.paradigm.xyz | bash
export PATH="$PATH:/root/.foundry/bin"
echo 'export PATH="$PATH:/home/circleci/.foundry/bin"' >> $BASH_ENV
source $BASH_ENV
foundryup --version nightly
install_just:
Expand Down Expand Up @@ -67,16 +64,17 @@ jobs:


cargo-tests:
executor: rust
docker:
- image: cimg/rust:1.75
environment:
CARGO_TERM_COLOR: always
steps:
- attach_workspace:
at: .
# - restore_cache:
# keys:
# - rust-cache-v1-{{ checksum "Cargo.lock" }}
# - rust-cache-v1-
- 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
Expand All @@ -91,12 +89,11 @@ jobs:
name: Build project
command: cargo build --workspace --all --locked
no_output_timeout: 20m

# - save_cache:
# key: rust-cache-v1-{{ checksum "Cargo.lock" }}
# paths:
# - ~/.cargo
# - target
- save_cache:
key: rust-cache-v1-{{ checksum "Cargo.lock" }}
paths:
- ~/.cargo
- target


foundry-check:
Expand Down

0 comments on commit f03c0b5

Please sign in to comment.