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