diff --git a/.github/workflows/validate_pr.yml b/.github/workflows/validate_pr.yml index 38ef75e..5737d60 100644 --- a/.github/workflows/validate_pr.yml +++ b/.github/workflows/validate_pr.yml @@ -14,6 +14,7 @@ env: RUST_BACKTRACE: full RUST_LOG: "info" CARGO_TERM_COLOR: always + CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG: true jobs: formatting: @@ -34,7 +35,7 @@ jobs: linting: timeout-minutes: 120 - name: cargo clippy + name: Cargo Clippy runs-on: macos-latest strategy: matrix: @@ -42,19 +43,31 @@ jobs: eigensdk-rs ] steps: - - name: checkout code + - name: Checkout Code uses: actions/checkout@v2 with: submodules: true fetch-depth: 0 - - name: Print current directory + - 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: Verify Forge installation + run: forge --version + + - name: Current Working Directory run: pwd - - name: List files + - name: List Files in Current Working Directory run: ls -al - - name: install rust + - name: Install Rust uses: actions-rs/toolchain@v1 with: toolchain: stable @@ -68,7 +81,7 @@ jobs: testing: timeout-minutes: 90 - name: cargo test + name: Cargo Test if: false # temporarily disabled runs-on: macos-14 strategy: diff --git a/avs/incredible-squaring-avs/build.rs b/avs/incredible-squaring-avs/build.rs index 15f35c7..9507546 100644 --- a/avs/incredible-squaring-avs/build.rs +++ b/avs/incredible-squaring-avs/build.rs @@ -22,13 +22,16 @@ fn main() { panic!("Forge executable not found. Make sure Foundry is installed."); } path - }, + } Err(_) => panic!("Failed to locate `forge` executable. Make sure Foundry is installed."), }; for dir in contract_dirs { let full_path = root.join(dir).canonicalize().unwrap_or_else(|_| { - println!("Directory not found or inaccessible: {}", root.join(dir).display()); + println!( + "Directory not found or inaccessible: {}", + root.join(dir).display() + ); root.join(dir) }); @@ -45,7 +48,10 @@ fn main() { panic!("Forge build failed for directory: {}", full_path.display()); } } else { - println!("Directory not found or does not exist: {}", full_path.display()); + println!( + "Directory not found or does not exist: {}", + full_path.display() + ); } } } diff --git a/avs/tangle-avs/build.rs b/avs/tangle-avs/build.rs index 15f35c7..9507546 100644 --- a/avs/tangle-avs/build.rs +++ b/avs/tangle-avs/build.rs @@ -22,13 +22,16 @@ fn main() { panic!("Forge executable not found. Make sure Foundry is installed."); } path - }, + } Err(_) => panic!("Failed to locate `forge` executable. Make sure Foundry is installed."), }; for dir in contract_dirs { let full_path = root.join(dir).canonicalize().unwrap_or_else(|_| { - println!("Directory not found or inaccessible: {}", root.join(dir).display()); + println!( + "Directory not found or inaccessible: {}", + root.join(dir).display() + ); root.join(dir) }); @@ -45,7 +48,10 @@ fn main() { panic!("Forge build failed for directory: {}", full_path.display()); } } else { - println!("Directory not found or does not exist: {}", full_path.display()); + println!( + "Directory not found or does not exist: {}", + full_path.display() + ); } } } diff --git a/contracts/build.rs b/contracts/build.rs index ccd39b8..f2228b1 100644 --- a/contracts/build.rs +++ b/contracts/build.rs @@ -21,13 +21,16 @@ fn main() { panic!("Forge executable not found. Make sure Foundry is installed."); } path - }, + } Err(_) => panic!("Failed to locate `forge` executable. Make sure Foundry is installed."), }; for dir in contract_dirs { let full_path = root.join(dir).canonicalize().unwrap_or_else(|_| { - println!("Directory not found or inaccessible: {}", root.join(dir).display()); + println!( + "Directory not found or inaccessible: {}", + root.join(dir).display() + ); root.join(dir) }); @@ -44,7 +47,10 @@ fn main() { panic!("Forge build failed for directory: {}", full_path.display()); } } else { - println!("Directory not found or does not exist: {}", full_path.display()); + println!( + "Directory not found or does not exist: {}", + full_path.display() + ); } } } diff --git a/test-utils/build.rs b/test-utils/build.rs index ec8cbc8..9507546 100644 --- a/test-utils/build.rs +++ b/test-utils/build.rs @@ -22,13 +22,16 @@ fn main() { panic!("Forge executable not found. Make sure Foundry is installed."); } path - }, + } Err(_) => panic!("Failed to locate `forge` executable. Make sure Foundry is installed."), }; for dir in contract_dirs { let full_path = root.join(dir).canonicalize().unwrap_or_else(|_| { - println!("Directory not found or inaccessible: {}", root.join(dir).display()); + println!( + "Directory not found or inaccessible: {}", + root.join(dir).display() + ); root.join(dir) }); @@ -45,7 +48,10 @@ fn main() { panic!("Forge build failed for directory: {}", full_path.display()); } } else { - println!("Directory not found or does not exist: {}", full_path.display()); + println!( + "Directory not found or does not exist: {}", + full_path.display() + ); } } -} \ No newline at end of file +}