From 627e69524d21cb9ff5a8d910b1fc3d0cae6ea2f4 Mon Sep 17 00:00:00 2001 From: Yuheng Su Date: Fri, 3 Jan 2025 09:38:58 +0000 Subject: [PATCH] update --- .github/workflows/build.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fbd174e..0e5c1cd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,29 +1,29 @@ -name: Build +name: CI on: push: - branches: [ "master" ] + branches: ["master"] pull_request: - branches: [ "master" ] + branches: ["master"] env: CARGO_TERM_COLOR: always jobs: - build: - + CI: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: jwlawson/actions-setup-cmake@v2.0.2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - - name: Initialize and update submodules - run: git submodule update --init --recursive - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - uses: actions/checkout@v4 + - uses: jwlawson/actions-setup-cmake@v2.0.2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + - name: Pull submodules + run: git submodule update --init --recursive + - name: Build + run: cargo build + - name: Run test + run: cargo test + - name: Format check + run: cargo fmt --check