Skip to content

Commit

Permalink
fix(ci): remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 committed Jun 4, 2024
1 parent 9173375 commit 2dc216b
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/foundry-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,29 @@ on:
jobs:
pre-setup:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.set-version.outputs.version }}
steps:
- id: set-version
run: |
echo "::set-output name=version::nightly-f625d0fa7c51e65b4bf1e8f7931cd1c6e2e285e9"
- name: Set Foundry version
id: set-version
run: echo "FOUNDRY_VERSION=nightly-f625d0fa7c51e65b4bf1e8f7931cd1c6e2e285e9" >> "$GITHUB_ENV"

setup:
runs-on: ubuntu-latest
needs: pre-setup
outputs:
key: ${{ steps.set-key.outputs.key }}
steps:
- uses: actions/checkout@v4

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: ${{ needs.pre-setup.outputs.version }}

version: ${{ env.FOUNDRY_VERSION }}
- name: Print forge version
run: forge --version

- name: Save Foundry cache
uses: actions/cache/save@v3
with:
path: |
~/.foundry
key: ${{ runner.os }}-foundry-${{ needs.pre-setup.outputs.version }}

key: ${{ runner.os }}-foundry-${{ env.FOUNDRY_VERSION }}
- name: Save key
id: set-key
run: |
echo "::set-output name=key::${{ runner.os }}-foundry-${{ needs.pre-setup.outputs.version }}"
run: echo "key=${{ runner.os }}-foundry-${{ env.FOUNDRY_VERSION }}" >> "$GITHUB_OUTPUT"

0 comments on commit 2dc216b

Please sign in to comment.