Skip to content

Commit

Permalink
Merge branch 'feat/storage-layout-check'
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 committed Nov 27, 2024
2 parents 6ca132c + 65a4656 commit 66bc71c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/reusable-foundry-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ jobs:
installation-dir: ${{ steps.find-path.outputs.installation-dir }}
steps:
- name: Echo skipping status
if: ${{ inputs.skip-install == true }}
if: ${{ inputs.skip-install }}
run: echo "Skipping Foundry installation"
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: ${{ inputs.foundry-version }}
if: ${{ inputs.skip-install == false }}
if: ${{ !inputs.skip-install }}
- name: Print forge version
run: forge --version
if: ${{ inputs.skip-install == false }}
if: ${{ !inputs.skip-install }}
# Unfortunately, the `foundry-toolchain` action installs it in a
# randomly generated location, so we must determine it ourselves
- name: Determine Foundry installation path
Expand All @@ -47,17 +47,17 @@ jobs:
installation_path=$(which forge)
installation_dir=$(dirname $installation_path)
echo "installation-dir=$installation_dir" >> "$GITHUB_OUTPUT"
if: ${{ inputs.skip-install == false }}
if: ${{ !inputs.skip-install }}
- name: Cache the Foundry toolchain
uses: actions/cache/save@v3
with:
path: ${{ steps.find-path.outputs.installation-dir }}
key: foundry-${{ inputs.foundry-version }}
if: ${{ inputs.skip-install == false }}
if: ${{ !inputs.skip-install }}
# No if in the below step to avoid the notification that goes
# out when the action is skipped
- name: Set cache key
id: set-cache-key
run: |
echo "cache-key=foundry-${{ inputs.foundry-version }}" >> "$GITHUB_OUTPUT"
if: ${{ inputs.skip-install == false }}
if: ${{ !inputs.skip-install }}

0 comments on commit 66bc71c

Please sign in to comment.