Skip to content

ci: adopt install-cargo-tool fallback and pinned taplo-cli from windows-drivers-rs#61

Merged
wmmc88 merged 2 commits intomicrosoft:mainfrom
wmmc88:install-cargo-tool-fallback
Apr 3, 2026
Merged

ci: adopt install-cargo-tool fallback and pinned taplo-cli from windows-drivers-rs#61
wmmc88 merged 2 commits intomicrosoft:mainfrom
wmmc88:install-cargo-tool-fallback

Conversation

@wmmc88
Copy link
Copy Markdown
Collaborator

@wmmc88 wmmc88 commented Mar 31, 2026

Adopts CI improvements from windows-drivers-rs:

  1. Replaces taiki-e/install-action@v2 for cargo-make (in build.yaml) and cargo-machete (in lint.yaml) with the install-cargo-tool composite action from ci: add install-cargo-tool action with cargo install fallback windows-drivers-rs#625. This adds automatic cargo install fallback when install-action silently fails on windows-11-arm runners under WoW64 arm64 emulation (see [windows-11-arm] Composite action bash steps intermittently produce zero output and exit 0 actions/partner-runner-images#169). For jobs that didn't already sparse-checkout shared actions (machete in lint.yaml), adds the checkout and copy steps.

  2. Switches taplo-cli installation in code-formatting-check.yaml to taiki-e/cache-cargo-install-action@v3 with the same pinned git revision (b673b44d) used by windows-drivers-rs.

wmmc88 added 2 commits March 30, 2026 19:43
Replace all remaining taiki-e/install-action@v2 usages with the new
install-cargo-tool composite action from windows-drivers-rs (PR #625).
This adds automatic cargo install fallback when install-action silently
fails on windows-11-arm runners under WoW64 arm64 emulation.

For jobs that did not already sparse-checkout shared actions from
windows-drivers-rs (machete in lint.yaml, taplo-fmt in
code-formatting-check.yaml), add the checkout and copy steps.
The install-cargo-tool action assumes crate name == binary name, which
breaks for taplo-cli (binary is taplo, not taplo-cli). Switch to
cache-cargo-install-action with the same pinned revision (b673b44d)
used by windows-drivers-rs, pending a taplo release with field-level
keys matching support.
@wmmc88 wmmc88 self-assigned this Mar 31, 2026
@wmmc88 wmmc88 enabled auto-merge (squash) March 31, 2026 23:52
@wmmc88 wmmc88 requested a review from a team March 31, 2026 23:52
@wmmc88 wmmc88 changed the title ci: use install-cargo-tool action with cargo install fallback ci: adopt install-cargo-tool fallback and pinned taplo-cli from windows-drivers-rs Apr 1, 2026
@wmmc88 wmmc88 merged commit b0dce6e into microsoft:main Apr 3, 2026
150 checks passed
@wmmc88 wmmc88 deleted the install-cargo-tool-fallback branch April 3, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants