Skip to content

Commit

Permalink
cargo fmt && cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Dec 17, 2023
1 parent 14d3826 commit bfbbd1d
Show file tree
Hide file tree
Showing 14 changed files with 2,409 additions and 1,497 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Rust

on:
[push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
matrix:
host_os:
- ubuntu-latest
- macos-latest
# - windows-latest

runs-on: ${{ matrix.host_os }}

steps:
- uses: actions/checkout@v3
- name: check
run: cargo check
- name: rustfmt
run: |
rustc --version
cargo fmt --all -- --check
- name: clippy
run: cargo clippy -- -D warnings
- name: Build
run: cargo build --verbose --all-features --tests --examples
- name: Run tests
run: cargo test --verbose
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.vscode/
.VSCodeCounter/
build/
tmp/
Cargo.lock
target/
Loading

0 comments on commit bfbbd1d

Please sign in to comment.