Skip to content

Update commit-ci.yml #54

Update commit-ci.yml

Update commit-ci.yml #54

Workflow file for this run

name: Commit CI
on:
push:
branches:
- '*'
tags:
- '![0-9]+.*'
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout last commit
uses: actions/checkout@v4
- name: Install clang-format
run: sudo apt install -y clang-format
- name: Lint
run: find src -name '*.cc' -o -name '*.h' | xargs clang-format -Werror --dry-run || { echo Please lint your code by '"'"find src -name '*.cc' -o -name '*.h' | xargs clang-format -i"'"'.; false; }
linux:
needs: lint
uses: ./.github/workflows/linux-build.yml
macos:
needs: lint
uses: ./.github/workflows/macos-build.yml
windows:
needs: lint
uses: ./.github/workflows/windows-build.yml
docker:
needs: lint
uses: ./.github/workflows/docker-build.yml