Skip to content

Commit

Permalink
chore: Enable rustfmt CI action.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdeljanov committed Jan 9, 2022
1 parent 41862b2 commit bc79c86
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with:
command: check
args: --all

- name: Check all features
uses: actions-rs/cargo@v1
with:
Expand All @@ -53,7 +53,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup Toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -81,25 +81,23 @@ jobs:
args: --target ${{ matrix.config.target }} --all --all-features --doc --exclude symphonia-play
use-cross: ${{ matrix.config.use-cross }}

fmt:
name: Rustfmt

# Uncomment to check formatting
# fmt:
# name: Rustfmt
runs-on: ubuntu-latest

# runs-on: ubuntu-latest

# steps:
# - name: Checkout
# uses: actions/checkout@v1
steps:
- name: Checkout
uses: actions/checkout@v1

# - name: Setup Toolchain
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# override: true
- name: Setup Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true

# - name: Check formatting
# uses: actions-rs/cargo@v1
# with:
# command: fmt
# args: --all -- --check
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

0 comments on commit bc79c86

Please sign in to comment.