Skip to content

Commit 7322073

Browse files
authored
Disable cargo-sweep install when setting up turborepo environment (vercel#4644)
1 parent 816fab8 commit 7322073

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ inputs:
44
target:
55
description: "Compilation target"
66
required: true
7-
87
targets:
98
description: "Comma-separated list of target triples to install for this toolchain"
109
required: false
@@ -22,6 +21,10 @@ inputs:
2221
description: "Determiners whether the cache should be saved. If `false`, the cache is only restored."
2322
required: false
2423
default: "false"
24+
install-cargo-sweep:
25+
description: "Whether to install cargo-sweep"
26+
required: false
27+
default: true
2528

2629
runs:
2730
using: "composite"
@@ -66,9 +69,11 @@ runs:
6669
save-if: ${{ github.ref == 'refs/heads/main' && inputs.save-cache || 'false' }}
6770

6871
- name: "Install cargo-sweep"
72+
if: ${{ inputs.install-cargo-sweep }} == "true"
6973
uses: baptiste0928/cargo-install@v1
7074
with:
7175
crate: cargo-sweep
7276

7377
- name: "Run cargo-sweep"
78+
if: ${{ inputs.install-cargo-sweep }} == "true"
7479
uses: ./.github/actions/cargo-sweep

.github/actions/setup-turborepo-environment/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ runs:
2525
shared-cache-key: turborepo-debug-build
2626
cache-key: ${{ inputs.target }}
2727
save-cache: true
28+
install-cargo-sweep: false

0 commit comments

Comments
 (0)