support clang build on windows #353
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
- 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 |