Skip to content

Commit

Permalink
ci: add a code quality workflow for macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Lopez <[email protected]>
  • Loading branch information
slp committed Feb 6, 2024
1 parent e8c364c commit 44eb210
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/code_quality-aarch64-darwin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Code Quality (rustfmt and clippy)
on: [pull_request, create]

jobs:
build:
if: github.event_name == 'pull_request'
name: Code Quality (clippy, rustfmt)
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
target:
- aarch64-apple-darwin
steps:
- name: Code checkout
uses: actions/checkout@v2
- name: Install Rust toolchain (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
components: rustfmt, clippy

- name: Create a fake init
run: touch init/init

- name: Formatting (rustfmt)
run: cargo fmt -- --check

- name: Clippy (default features)
run: cargo clippy -- -D warnings

- name: Clippy (net feature)
run: cargo clippy --features net -- -D warnings

0 comments on commit 44eb210

Please sign in to comment.