From 8b68a7223436912ef15686c519c8f54ea2a78e28 Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Wed, 28 Feb 2024 14:20:48 -0800 Subject: [PATCH 1/2] Update run-custom-command.yml - add ref and opt builds --- .github/workflows/run-custom-command.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-custom-command.yml b/.github/workflows/run-custom-command.yml index 28bbc9f..53bb4ea 100644 --- a/.github/workflows/run-custom-command.yml +++ b/.github/workflows/run-custom-command.yml @@ -25,5 +25,11 @@ jobs: - name: Install forge dependencies run: forge install + - name: Precompile reference using 0.8.24 and via-ir=false + run: FOUNDRY_PROFILE=reference forge build + + - name: Precompile optimized using 0.8.24 and via-ir=true + run: FOUNDRY_PROFILE=optimized forge build + - name: Run custom command - run: ${{ github.event.inputs.cmd }} \ No newline at end of file + run: ${{ github.event.inputs.cmd }} From 8f0e53e69f926d4d961e89c7feb3186acd8a45b2 Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Wed, 28 Feb 2024 14:21:48 -0800 Subject: [PATCH 2/2] Update run-custom-command.yml --- .github/workflows/run-custom-command.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-custom-command.yml b/.github/workflows/run-custom-command.yml index 53bb4ea..d85c60b 100644 --- a/.github/workflows/run-custom-command.yml +++ b/.github/workflows/run-custom-command.yml @@ -25,10 +25,10 @@ jobs: - name: Install forge dependencies run: forge install - - name: Precompile reference using 0.8.24 and via-ir=false + - name: Precompile reference contracts run: FOUNDRY_PROFILE=reference forge build - - name: Precompile optimized using 0.8.24 and via-ir=true + - name: Precompile optimized contracts run: FOUNDRY_PROFILE=optimized forge build - name: Run custom command