Skip to content

✨ Support Windows using IOCP #4

✨ Support Windows using IOCP

✨ Support Windows using IOCP #4

Workflow file for this run

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/setup-python@v4.3.0
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