Skip to content

Commit

Permalink
ci: use stable release of Foundry
Browse files Browse the repository at this point in the history
  • Loading branch information
guidanoli committed Jan 30, 2025
1 parent ecc77a9 commit 72e10e8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 21 deletions.
15 changes: 10 additions & 5 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: 'Install dependencies'
description: 'Installs pnpm, node, Node packages, and foundry'
inputs:

outputs:
foundry-version:
description: 'Foundry version'
type: string
default: 'nightly'
description: 'The version of Foundry that was installed'
value: ${{ steps.set-foundry-version.outputs.foundry-version }}

runs:
using: 'composite'
Expand All @@ -22,6 +22,11 @@ runs:
shell: bash
run: pnpm i

- name: Set Foundry version
id: set-foundry-version
shell: bash
run: echo "foundry-version=v0.3.0" >> $GITHUB_OUTPUT

- uses: foundry-rs/foundry-toolchain@v1
with:
version: ${{ inputs.foundry-version }}
version: ${{ steps.set-foundry-version.outputs.foundry-version }}
2 changes: 0 additions & 2 deletions .github/workflows/check-code-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ jobs:
- uses: actions/checkout@v4

- uses: ./.github/actions/setup
with:
foundry-version: nightly

- name: Check code format
run: pnpm fmt:check
2 changes: 0 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:
submodules: recursive

- uses: ./.github/actions/setup
with:
foundry-version: nightly

- name: Generate documentation
run: forge doc -b
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:
git config user.email [email protected]
- uses: ./.github/actions/setup
with:
foundry-version: nightly

- name: Create release PR or publish packages to npmjs.com
uses: changesets/action@3de3850952bec538fde60aac71731376e57b9b57
Expand Down Expand Up @@ -57,8 +55,6 @@ jobs:
submodules: recursive

- uses: ./.github/actions/setup
with:
foundry-version: nightly

- name: Install Python dependencies
run: pip install yq
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
submodules: recursive

- uses: ./.github/actions/setup
with:
foundry-version: nightly

- name: Run tests
run: forge test -vvv
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/upload-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
tags:
- v*

env:
FOUNDRY_VERSION: nightly-2044faec64f99a21f0e5f0094458a973612d0712

jobs:
upload:
name: Upload contract artifacts to GitHub Releases
Expand All @@ -18,8 +15,7 @@ jobs:
submodules: recursive

- uses: ./.github/actions/setup
with:
foundry-version: ${{ env.FOUNDRY_VERSION }}
id: setup

- name: Build contracts
run: pnpm build
Expand All @@ -42,7 +38,7 @@ jobs:
- name: Compress Anvil deployment artifacts
run: tar -czf "$FILEPATH" state.json -C export/abi localhost.json
env:
FILEPATH: upload/rollups-contracts-${{ steps.extract_version.outputs.version }}-anvil-${{ env.FOUNDRY_VERSION }}.tar.gz
FILEPATH: upload/rollups-contracts-${{ steps.extract_version.outputs.version }}-anvil-${{ steps.setup.outptus.foundry-version }}.tar.gz

- name: Upload files to GitHub Releases
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 72e10e8

Please sign in to comment.