From 037aceb09252df1a83be6e8e3c9ece313cf4f9e6 Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Sun, 28 Jul 2024 16:21:52 +0859 Subject: [PATCH] chore: add base workflows --- .github/workflows/rustci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/rustci.yml diff --git a/.github/workflows/rustci.yml b/.github/workflows/rustci.yml new file mode 100644 index 0000000..7184fe6 --- /dev/null +++ b/.github/workflows/rustci.yml @@ -0,0 +1,27 @@ +name: Build + +on: + push: + branches: + - master + pull_request: + branches: + - master +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true +jobs: + build: + name: Build Binary + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + - name: Run fmt check + run: cargo fmt --all -- --check + - name: Run clippy check + run: cargo clippy + - name: Run tests + run: cargo test --verbose