Skip to content

Commit

Permalink
chore: merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstone committed Nov 4, 2024
2 parents b70e529 + c25447c commit 6d4c597
Show file tree
Hide file tree
Showing 110 changed files with 2,728 additions and 1,536 deletions.
57 changes: 56 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
run: forge update && cd blueprints/incredible-squaring-eigenlayer && forge build --root ./contracts

- name: Run Clippy
run: cargo clippy --tests -- -D warnings
run: cargo clippy --tests --examples -- -D warnings

testing:
timeout-minutes: 90
Expand Down Expand Up @@ -122,3 +122,58 @@ jobs:

- name: tests
run: cargo nextest run --nocapture --package ${{ matrix.package }} ${{ matrix.package == 'gadget-sdk' && '--features getrandom,std' || '' }}

integration-test-eigenlayer:
timeout-minutes: 90
runs-on: macos-latest
steps:
- name: checkout code
uses: actions/checkout@v2

- name: Install Foundry
run: |
curl -L https://foundry.paradigm.xyz | bash
source /Users/runner/.bashrc
foundryup
- name: Add Foundry to PATH
run: echo "${HOME}/.foundry/bin" >> $GITHUB_PATH

- name: Forge build
run: forge update && cd blueprints/incredible-squaring-eigenlayer && forge build --root ./contracts && cd ../../

- name: setup-docker
run: brew install docker

- name: Verify Forge and Docker installation
run: forge --version && docker --version

- name: Run anvil in background
run: anvil --version && anvil &

- name: install rust
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: stable

- uses: swatinem/rust-cache@v2
with:
cache-on-failure: "true"

- name: install protobuf
run: brew install protobuf gmp

- name: Set Relevant M1 env vars
run: |
export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/lib
export INCLUDE_PATH=$INCLUDE_PATH:/opt/homebrew/include
- name: install cargo-nextest
run: cargo install cargo-nextest --locked

- name: Build (release) integration test
run: cargo build --release -p incredible-squaring-blueprint-eigenlayer

- name: tests
run: RUST_LOG=gadget=trace cargo test --package blueprint-test-utils test_eigenlayer_incredible_squaring_blueprint -- --nocapture

4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
path = blueprints/incredible-squaring-eigenlayer/contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std

[submodule "blueprints/tangle-avs-blueprint/contracts/lib/forge-std"]
path = blueprints/tangle-avs-blueprint/contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std

# For the ecdsa-threshold-mpc blueprint
[submodule "blueprints/ecdsa-threshold-mpc/contracts/lib/forge-std"]
path = blueprints/ecdsa-threshold-mpc/contracts/lib/forge-std
Expand Down
Loading

0 comments on commit 6d4c597

Please sign in to comment.