Avoid installing rustc-dev in the rustfmt CI job
This commit is contained in:
parent
aa6916bd01
commit
fae8935e3d
1 changed files with 4 additions and 2 deletions
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
@ -12,9 +12,11 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install rustfmt
|
||||
- name: Avoid installing rustc-dev
|
||||
run: |
|
||||
rustup component add rustfmt
|
||||
sed -i 's/components.*/components = ["rustfmt"]/' rust-toolchain
|
||||
echo 'profile = "minimal"' >> rust-toolchain
|
||||
rustfmt -v
|
||||
|
||||
- name: Rustfmt
|
||||
run: |
|
||||
|
|
Loading…
Add table
Reference in a new issue