|
|
@ -1,4 +1,4 @@
|
|
|
|
name: Check formatting
|
|
|
|
name: Formatting + Clippy
|
|
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
push:
|
|
|
@ -18,7 +18,7 @@ on:
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
build:
|
|
|
|
name: Check Rust code formatting
|
|
|
|
name: Formatter and linter checks
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
@ -30,8 +30,12 @@ jobs:
|
|
|
|
- name: Set up Rust nightly
|
|
|
|
- name: Set up Rust nightly
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
rustup self update
|
|
|
|
rustup self update
|
|
|
|
rustup toolchain install nightly --component rustfmt
|
|
|
|
rustup toolchain install nightly --component rustfmt clippy rust-src
|
|
|
|
rustup default nightly
|
|
|
|
rustup default nightly
|
|
|
|
|
|
|
|
cargo install cargo-xbuild
|
|
|
|
- name: Run cargo fmt
|
|
|
|
- name: Run cargo fmt
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
ruby utils/fmt_all.rb --check
|
|
|
|
ruby utils/fmt_all.rb --check
|
|
|
|
|
|
|
|
- name: Run cargo clippy
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
ruby utils/clippy_all.rb
|