Skip to content

Commit

Permalink
add .github/workflows/ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dicklessgreat committed Sep 7, 2024
1 parent 4afc330 commit 27b2227
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 27b2227

Please sign in to comment.