Skip to content

Commit 16edd75

Browse files
chore: fast download cargo tools (#1970)
1 parent 4d2a4ee commit 16edd75

File tree

4 files changed

+19
-26
lines changed

4 files changed

+19
-26
lines changed

.github/workflows/component_image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ jobs:
5454
- name: Install Zig
5555
uses: mlugg/setup-zig@fa65c4058643678a4e4a9a60513944a7d8d35440 # v2
5656

57-
- name: Install cargo-zigbuild
58-
run: |
59-
cargo install --locked cargo-zigbuild --force
57+
- uses: taiki-e/install-action@ca44e2a6d435c2fa24b2d4b63fc366fdcab90221 # v2.64.1
58+
with:
59+
tool: cargo-zigbuild@0.20.1
6060

6161
- name: Build Agent Control for K8s
6262
env:

.github/workflows/component_k8s_e2e.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ jobs:
7777
- name: Install Zig
7878
uses: mlugg/setup-zig@fa65c4058643678a4e4a9a60513944a7d8d35440 # v2
7979

80-
- name: Install cargo-zigbuild
81-
run: |
82-
cargo install --locked cargo-zigbuild --force
80+
- uses: taiki-e/install-action@ca44e2a6d435c2fa24b2d4b63fc366fdcab90221 # v2.64.1
81+
with:
82+
tool: cargo-zigbuild@0.20.1
8383

8484
- name: Run k8s e2e-test ${{ matrix.group }}
8585
uses: newrelic/newrelic-integration-e2e-action@c548a33a0c2941a4db4899ded766923eb3178e0e # v1

.github/workflows/component_packages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ jobs:
6767
- name: Install Zig
6868
uses: mlugg/setup-zig@fa65c4058643678a4e4a9a60513944a7d8d35440 # v2
6969

70-
- name: Install cargo-zigbuild
71-
run: |
72-
cargo install --locked cargo-zigbuild --force
70+
- uses: taiki-e/install-action@ca44e2a6d435c2fa24b2d4b63fc366fdcab90221 # v2.64.1
71+
with:
72+
tool: cargo-zigbuild@0.20.1
7373

7474
- name: Install Windows cross-compilation dependencies
7575
run: |

.github/workflows/push_pr_checks_tests.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ jobs:
9393
steps:
9494
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
9595

96-
- uses: taiki-e/install-action@575f713d0233afba556737a7b85080563be14186 # 575f713d0233afba556737a7b85080563be14186
96+
- uses: taiki-e/install-action@ca44e2a6d435c2fa24b2d4b63fc366fdcab90221 # v2.64.1
9797
with:
98-
tool: cargo-shear@1.1.11
98+
tool: cargo-shear@1.9.1
9999

100100
- run: cargo shear
101101

@@ -173,9 +173,9 @@ jobs:
173173
- name: Install Zig
174174
uses: mlugg/setup-zig@fa65c4058643678a4e4a9a60513944a7d8d35440 # v2
175175

176-
- name: Install cargo-zigbuild
177-
run: |
178-
cargo install --locked cargo-zigbuild --force
176+
- uses: taiki-e/install-action@ca44e2a6d435c2fa24b2d4b63fc366fdcab90221 # v2.64.1
177+
with:
178+
tool: cargo-zigbuild@0.20.1
179179

180180
- name: Build k8s in release mode
181181
run: cargo zigbuild --release --package newrelic_agent_control --bin newrelic-agent-control-k8s --target x86_64-unknown-linux-musl
@@ -204,13 +204,6 @@ jobs:
204204
restore-strategy: 'nearest'
205205
save-cache: false
206206

207-
- name: Install Zig
208-
uses: mlugg/setup-zig@fa65c4058643678a4e4a9a60513944a7d8d35440 # v2
209-
210-
- name: Install cargo-zigbuild
211-
run: |
212-
cargo install --locked cargo-zigbuild --force
213-
214207
- name: Run workspace tests excluding the agent control pkg (includes -winAdmin- ignored because it doesn't apply)
215208
run: cargo test --workspace --exclude 'newrelic_agent_control' --all-targets -- --include-ignored
216209

@@ -318,9 +311,9 @@ jobs:
318311
- name: Install Zig
319312
uses: mlugg/setup-zig@fa65c4058643678a4e4a9a60513944a7d8d35440 # v2
320313

321-
- name: Install cargo-zigbuild
322-
run: |
323-
cargo install --locked cargo-zigbuild --force
314+
- uses: taiki-e/install-action@ca44e2a6d435c2fa24b2d4b63fc366fdcab90221 # v2.64.1
315+
with:
316+
tool: cargo-zigbuild@0.20.1
324317

325318
- name: Run k8s integration tests
326319
env:
@@ -347,9 +340,9 @@ jobs:
347340
with:
348341
components: clippy
349342

350-
- uses: taiki-e/install-action@575f713d0233afba556737a7b85080563be14186 # 575f713d0233afba556737a7b85080563be14186
343+
- uses: taiki-e/install-action@ca44e2a6d435c2fa24b2d4b63fc366fdcab90221 # v2.64.1
351344
with:
352-
tool: cargo-shear@1.1.11
345+
tool: cargo-shear@1.9.1
353346

354347
- name: cargo generate-lockfile
355348
if: hashFiles('Cargo.lock') == ''

0 commit comments

Comments
 (0)