Skip to content

Commit

Permalink
ci: Check that source is formatted.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jul 8, 2023
1 parent 31c37ba commit ec4526a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,15 @@ jobs:
sudo apt install libx11-dev libpango1.0-dev libxkbcommon-dev libxkbcommon-x11-dev
if: runner.os == 'Linux'
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
- name: restore cache
uses: Swatinem/rust-cache@v2
- name: cargo fmt
# We'll only run this on one platform.
run: cargo fmt --all -- --check
if: runner.os == 'Linux'
- name: Check
run: cargo check

0 comments on commit ec4526a

Please sign in to comment.