Small fixes in ci.yml

- Add `profile: minimal`
- Install `rustfmt` when installing the toolchain, not afterwards
- Use stable toolchain for `rustfmt`
- Replace `override` with `default`. I think this better reflects the
  "use what we just installed" intent.
This commit is contained in:
Niklas Mohrin 2022-08-21 22:13:32 +02:00
commit a6023a5234
No known key found for this signature in database
GPG key ID: 0ACD89A5C1DEB3EB

View file

@ -9,7 +9,6 @@ on:
name: CI
jobs:
test:
name: run tests
strategy:
@ -22,7 +21,8 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
default: true
- name: Build with default features
uses: actions-rs/cargo@v1
with:
@ -45,8 +45,9 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
default: true
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
@ -59,9 +60,10 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: '1.60'
override: true
- run: rustup component add rustfmt
toolchain: stable
profile: minimal
default: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
@ -79,7 +81,8 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
default: true
- name: Build
uses: actions-rs/cargo@v1
with: