From 0471dc086184788054bf8225a4b24db1944c6ae0 Mon Sep 17 00:00:00 2001 From: ULis <35290326+ULis3h@users.noreply.github.com> Date: Wed, 12 Jul 2023 11:32:54 +0800 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..88fcfb1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Rust CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Set up Rust + uses: actions/setup-rust@v1 + with: + rust-version: stable + + - name: Check out code + uses: actions/checkout@v2 + + - name: Build + run: cargo build --verbose + + - name: Test + run: cargo test --verbose