diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml new file mode 100644 index 0000000..43e4f95 --- /dev/null +++ b/.github/workflows/build_test.yml @@ -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