From 8a65f4641856c8c9965ed5ac4d6d3279fb312d13 Mon Sep 17 00:00:00 2001 From: Syed Ahkam Date: Sun, 16 Apr 2023 05:45:10 +0530 Subject: [PATCH] github: create build workflow --- .github/workflows/build-and-test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build-and-test.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..2ac31bb --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,23 @@ +on: + push: + branches: + - master + pull_request: + branches: + - master + +name: Build and test + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - name: Build and test + run: | + cargo build --release + cargo test + \ No newline at end of file