Support Windows using IOCP (#1) #11
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: Lint CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
clang-format: | |
runs-on: ubuntu-22.04 | |
steps: | |
- run: | | |
echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" | sudo tee /etc/apt/sources.list.d/llvm.list | |
echo "deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" | sudo tee -a /etc/apt/sources.list.d/llvm.list | |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc | |
sudo apt update && sudo apt-get install clang-format-17 | |
shopt -s globstar | |
- uses: actions/checkout@v3 | |
- run: find \( -name "*.h" -or -name "*.cpp" \) -exec clang-format-17 -i {} \; | |
- run: find \( -name "*.h" -or -name "*.cpp" \) -exec ./.github/scripts/add-newline-if-missing.sh {} \; | |
- uses: ./.github/actions/process-linting-results | |
with: | |
linter_name: clang-format | |
cmake-format: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/[email protected] | |
with: | |
python-version: "3.x" | |
- run: | | |
pip install cmakelang | |
shopt -s globstar | |
- uses: actions/checkout@v3 | |
- run: find \( -name "CMakeLists.txt" -or -name "*.cmake" \) -exec cmake-format -i {} \; | |
- uses: ./.github/actions/process-linting-results | |
with: | |
linter_name: cmake-format | |
line-ending: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: git add --renormalize . | |
- uses: ./.github/actions/process-linting-results | |
with: | |
linter_name: line-ending |