From c26eab57f11576e4c44858d0aa41b8c3bf94bdf9 Mon Sep 17 00:00:00 2001 From: Vectorized Date: Mon, 15 Apr 2024 03:53:11 +0800 Subject: [PATCH] Move build-info into just the CI, for faster recompiles (#92) * Move build-info into just the CI, for faster recompiles * Edit README --- .github/workflows/foundry_ci.yml | 2 +- README.md | 2 +- foundry.toml | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/foundry_ci.yml b/.github/workflows/foundry_ci.yml index 1fed6276..1efeb9ca 100644 --- a/.github/workflows/foundry_ci.yml +++ b/.github/workflows/foundry_ci.yml @@ -42,7 +42,7 @@ jobs: # This step requires full build to be run first - name: Upgrade Safety test run: | - forge clean && forge build + forge clean && forge build --build-info # npx @openzeppelin/upgrades-core validate out/build-info - name: Run Forge tests diff --git a/README.md b/README.md index c54f9c67..f0252c30 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ make # this builds ```sh forge clean -forge compile +forge compile --build-info npx @openzeppelin/upgrades-core@^1.32.3 validate out/build-info ``` diff --git a/foundry.toml b/foundry.toml index 867b3435..2310276f 100644 --- a/foundry.toml +++ b/foundry.toml @@ -9,7 +9,6 @@ optimizer_runs = 20000 test = 'test' solc = '0.8.23' fs_permissions = [{ access = 'read-write', path = './deploy-out' }, { access = 'read', path = './out' }] -build_info = true extra_output = ["storageLayout"] [rpc_endpoints]