Skip to content

Commit 101b0f5

Browse files
committed
fix: toggle off Rust setup on node build job
1 parent 6976b0f commit 101b0f5

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/actions/setup-tools/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: setup-tools
22
description: Install base tools
33
inputs:
44
target:
5-
description: 'Architecture to build for'
5+
description: 'Architecture to build for (if Rust is setup)'
66
required: false
77
default: 'x86_64-unknown-linux-gnu'
88
rust_version:
9-
description: 'Rust version to install'
9+
description: 'Rust version to install (if Rust is setup)'
1010
required: false
1111
default: '1.86'
1212
foundry_version:
@@ -17,6 +17,10 @@ inputs:
1717
description: 'Whether to setup QEMU for riscv support'
1818
required: false
1919
default: 'true'
20+
setup-rust:
21+
description: 'Whether to setup Rust'
22+
required: false
23+
default: 'true'
2024
outputs:
2125
foundry-version:
2226
description: 'The version of Foundry that was installed'
@@ -30,6 +34,7 @@ runs:
3034

3135
- name: Install Rust
3236
uses: actions-rust-lang/setup-rust-toolchain@v1
37+
if: ${{ inputs.setup-rust == 'true' }}
3338
with:
3439
components: rustfmt
3540
target: ${{ inputs.target }}

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ jobs:
199199
uses: ./.github/actions/setup-tools
200200
with:
201201
setup-qemu: false
202-
target: ${{ matrix.target }}
202+
setup-rust: false
203203

204204
- name: Contracts
205205
run: |

0 commit comments

Comments
 (0)