From c9d00cf3573e1b706118d70f43fa02f27a0fa07f Mon Sep 17 00:00:00 2001 From: aniketfuryrocks Date: Fri, 7 Jul 2023 11:21:18 +0530 Subject: [PATCH] ci --- .github/workflows/build_test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build_test.yml 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