Skip to content

Commit fae8935

Browse files
committed
Avoid installing rustc-dev in the rustfmt CI job
1 parent aa6916b commit fae8935

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414

15-
- name: Install rustfmt
15+
- name: Avoid installing rustc-dev
1616
run: |
17-
rustup component add rustfmt
17+
sed -i 's/components.*/components = ["rustfmt"]/' rust-toolchain
18+
echo 'profile = "minimal"' >> rust-toolchain
19+
rustfmt -v
1820
1921
- name: Rustfmt
2022
run: |

0 commit comments

Comments
 (0)