ci(fix): fmt could be done only one time, on Linux e.g.

This commit is contained in:
Santo Cariotti 2021-10-25 10:22:45 +02:00
parent 2568a58498
commit 217dd9c910

View File

@ -276,10 +276,8 @@ jobs:
# path: target\x86_64-pc-windows-gnu\release\ouch.exe # path: target\x86_64-pc-windows-gnu\release\ouch.exe
fmt: fmt:
strategy: name: Check sourcecode format
matrix: runs-on: ubuntu-latest
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout sources - name: Checkout sources
@ -294,12 +292,6 @@ jobs:
components: rustfmt components: rustfmt
override: true override: true
- name: Run cargo build
uses: actions-rs/cargo@v1
if: ${{ matrix.os=='windows-latest' }}
with:
command: build
- name: Check format with cargo fmt - name: Check format with cargo fmt
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with: