This repository has been archived by the owner on Dec 14, 2023. It is now read-only.
Bump 3rd_party/pybind11 from 9ec1128
to 5891867
#231
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: "Coding Style" | |
env: | |
clang_version: 10 | |
on: | |
push: | |
branches: [ main, ci-sandbox ] | |
pull_request: | |
branches: [ '**' ] | |
jobs: | |
clang-format: | |
name: "clang-format" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential cmake | |
sudo apt-get install -y clang-format clang-tidy-${{ env.clang_version }} | |
- name: Run clang-format | |
run: | |
python3 run-clang-format.py --style file -r src wasm bindings/python | |
- name: Prepare build, compilation database etc. | |
run: | | |
mkdir -p build | |
cd build | |
cmake \ | |
-DUSE_WASM_COMPATIBLE_SOURCE=off -DCMAKE_EXPORT_COMPILE_COMMANDS=on \ | |
-DCMAKE_C_COMPILER=clang-${{ env.clang_version }} -DCMAKE_CXX_COMPILER=clang++-${{ env.clang_version }} \ | |
.. | |
- name: Run clang-tidy | |
run: | | |
run-clang-tidy-${{ env.clang_version }} -p build "$PWD/src/.*" | |
run-clang-tidy-${{ env.clang_version }} -p build "$PWD/app/.*" |