Install rustfmt and clippy in CI
dtolnay/rust-toolchain installs a minimal profile, so pinning the toolchain to 1.94.0 left it without either component and the first fmt step failed with "cargo-fmt is not installed for the toolchain". The release workflow ran the same two commands and would have hit it too. Co-Authored-By: siGit Code <noreply@sigit.si>
Seto Elkahfi committed
Sep 10, 2026 at 08:46 UTC
471ab7b8770efcafce8081add57e92c8b9291d62
2 files changed
+6
.github/workflows/ci.yml
+3
@@ -37,6 +37,9 @@ jobs:
37
- uses: dtolnay/rust-toolchain@stable
38
with:
39
toolchain: ${{ env.RUST_TOOLCHAIN }}
40
+ # The action installs a minimal profile, so the pinned toolchain has
41
+ # neither of these unless they are asked for by name.
42
+ components: rustfmt, clippy
43
- uses: Swatinem/rust-cache@v2
44
with:
45
workspaces: ed
.github/workflows/release-sdk-swift.yml
+3
@@ -51,6 +51,9 @@ jobs:
51
- uses: dtolnay/rust-toolchain@stable
52
with:
53
toolchain: ${{ env.RUST_TOOLCHAIN }}
54
+ # The action installs a minimal profile, so the pinned toolchain has
55
+ # neither of these unless they are asked for by name.
56
+ components: rustfmt, clippy
57
- name: Validate tag matches workspace version
58
if: startsWith(github.ref, 'refs/tags/')
59
run: |