From 27b222714ded099796baf568644f5278728a38bf Mon Sep 17 00:00:00 2001 From: Dickless <011001nobuo@gmail.com> Date: Sun, 8 Sep 2024 01:49:37 +0900 Subject: [PATCH] add .github/workflows/ci.yml --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..832d72c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: Continuous integration + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + formatting: + name: Formatting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + target: thumbv7em-none-eabihf + - run: cargo fmt -- --check + linting: + name: Linting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy + target: thumbv7em-none-eabihf + - run: cargo clippy --all-features -- --deny=warnings \ No newline at end of file