This commit is contained in:
parent
660a5f5b68
commit
c9d00cf357
|
@ -0,0 +1,31 @@
|
|||
name: Rust Build and Clippy Check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
|
||||
- name: Build and test
|
||||
run: |
|
||||
cargo build --all-targets
|
||||
cargo test --all-targets
|
||||
|
||||
- name: Run Clippy
|
||||
run: cargo clippy --all-targets -- -D warnings
|
Loading…
Reference in New Issue