Skip to content

Commit

Permalink
adding foundry setup phase, pulling stables for PRs too
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello committed Dec 21, 2023
1 parent 27bdb8b commit 8e6aa2c
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .github/actions/setup-foundry/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Install Foundry
description: Installs the workspace's foundry

runs:
using: composite
steps:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
4 changes: 2 additions & 2 deletions .github/actions/setup-nargo/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Install Yarn dependencies
description: Installs the workspace's yarn dependencies and caches them
name: Install Nargo
description: Installs the workspace's nargo
inputs:
version:
description: The version of the project to install dependencies for
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/vite_hardhat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,25 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Get latest version
id: versions_step
run: |
output=$(node ./.github/scripts/latest.js)
echo "Output from Node.js script: $output"
STABLE=$(echo $output | jq -r '.stable')
echo "::set-output name=stable::$STABLE"
- name: Set up yarn
uses: ./.github/actions/setup-yarn
with:
project: vite-hardhat

- name: Set up nargo
uses: ./.github/actions/setup-nargo
with:
version: ${{ steps.versions_step.outputs.stable }}

- name: Enable Corepack before setting up Node
run: corepack enable

Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/with_foundry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,22 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install Nargo
uses: noir-lang/[email protected]
- name: Get latest version
id: versions_step
run: |
output=$(node ./.github/scripts/latest.js)
echo "Output from Node.js script: $output"
STABLE=$(echo $output | jq -r '.stable')
echo "::set-output name=stable::$STABLE"
- name: Set up nargo
uses: ./.github/actions/setup-nargo
with:
toolchain: 0.11.0
version: ${{ steps.versions_step.outputs.stable }}

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Set up foundry
uses: ./.github/actions/setup-foundry

- name: Generate verifier contract
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/with_foundry_nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
with:
version: ${{ matrix.version }}

- name: Set up foundry
uses: ./.github/actions/setup-foundry

- name: Get stability
id: get-stability
env:
Expand Down

0 comments on commit 8e6aa2c

Please sign in to comment.