Skip to content

Commit

Permalink
need to separate yarn from nargo setup because foundry project doesnt…
Browse files Browse the repository at this point in the history
… have yarn
  • Loading branch information
signorecello committed Dec 21, 2023
1 parent b722965 commit 4955bf9
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 16 deletions.
18 changes: 18 additions & 0 deletions .github/actions/setup-nargo/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Install Yarn dependencies
description: Installs the workspace's yarn dependencies and caches them
inputs:
version:
description: The version of the project to install dependencies for
required: true

runs:
using: composite
steps:
- name: Install Nargo
uses: noir-lang/[email protected]
with:
toolchain: ${{ inputs.version }}

- name: Use Nargo
run: nargo --version
shell: bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ inputs:
project:
description: The project to install dependencies for
required: true
version:
description: The version of the project to install dependencies for
required: true

runs:
using: composite
Expand All @@ -23,12 +20,3 @@ runs:
- name: Install
run: yarn --immutable
shell: bash

- name: Install Nargo
uses: noir-lang/[email protected]
with:
toolchain: ${{ inputs.version }}

- name: Use Nargo
run: nargo --version
shell: bash
9 changes: 7 additions & 2 deletions .github/workflows/vite_hardhat_nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up test environment
uses: ./.github/actions/setup
- name: Set up yarn
uses: ./.github/actions/setup-yarn
with:
project: vite-hardhat

- name: Set up nargo
uses: ./.github/actions/setup-nargo
with:
version: ${{ matrix.version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/with_foundry_nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up test environment
uses: ./.github/actions/setup
- name: Set up nargo
uses: ./.github/actions/setup-nargo
with:
version: ${{ matrix.version }}

Expand Down

0 comments on commit 4955bf9

Please sign in to comment.