CI: adjust matrix test to install rustfmt during autofmt tests

This commit is contained in:
Jonathan Kelley 2023-12-06 21:27:26 -08:00
parent 0aa4875ec0
commit 69bf6b9dd7
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE

View file

@ -124,8 +124,6 @@ jobs:
}
steps:
- uses: actions/checkout@v4
- name: install stable
uses: dtolnay/rust-toolchain@master
with:
@ -141,6 +139,11 @@ jobs:
workspaces: core -> ../target
save-if: ${{ matrix.features.key == 'all' }}
- name: Install rustfmt
run: rustup component add rustfmt
- uses: actions/checkout@v4
- name: test
run: |
${{ env.RUST_CARGO_COMMAND }} ${{ matrix.platform.command }} ${{ matrix.platform.args }} --target ${{ matrix.platform.target }}