From dd2eee05be13ae185027abfeaa6c1360f29c66d7 Mon Sep 17 00:00:00 2001 From: Ermyas Abebe Date: Thu, 14 Sep 2023 14:13:09 +1000 Subject: [PATCH] Improve CI build (#64) * Turn optimizer off by default * Improve slither output on CI --- .github/workflows/ci.yml | 1 + foundry.toml | 12 +++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e067066..f2f7bce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,4 +85,5 @@ jobs: fail-on: high ignore-compile: true solc-version: 0.8.19 + slither-args: --checklist --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/ slither-config: "slither.config.json" diff --git a/foundry.toml b/foundry.toml index 3f0f7e3..6b40cf8 100644 --- a/foundry.toml +++ b/foundry.toml @@ -3,19 +3,17 @@ src = "src" out = "out" libs = ["lib"] solc = "0.8.19" - -optimizer = true +optimizer = false runs = 100 -viaIR = true +viaIR = false -[profile.local] +[profile.prod] src = "src" out = "out" libs = ["lib"] solc = "0.8.19" - -optimizer = false +optimizer = true runs = 100 -viaIR = false +viaIR = true # See more config options https://github.com/foundry-rs/foundry/tree/master/config \ No newline at end of file