Skip to content

Commit

Permalink
[CI] Add rustfmt check
Browse files Browse the repository at this point in the history
  • Loading branch information
Seeker14491 committed Sep 11, 2020
1 parent 1144422 commit c10fa1e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ env:
jobs:
linux:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build
Expand All @@ -17,7 +16,6 @@ jobs:

windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Install LLVM
Expand All @@ -32,7 +30,6 @@ jobs:

mac:
runs-on: macos-latest

steps:
- run: rustup component add rustfmt
- uses: actions/checkout@v2
Expand All @@ -54,3 +51,10 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

rustfmt_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rustfmt check
run: cargo fmt -- --check

0 comments on commit c10fa1e

Please sign in to comment.