Skip to content

Enable Ubuntu 22.04 builds #122

Enable Ubuntu 22.04 builds

Enable Ubuntu 22.04 builds #122

name: Check Code Formatting for AD-Map Library
on:
push:
branches: master
pull_request:
branches: master
jobs:
check_cpp:
name: Check Code Formatting
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install clang-format-10
- name: Check Formatting
run: failed=0; for file in `find . -path ./dependencies -prune -false -o -iname *.cpp -o -iname *.hpp`; do if [ `clang-format-10 $file -output-replacements-xml | grep -c "<replacement "` -ne 0 ]; then echo "$file does not match codeing style. Please run clang-format-10"; failed=1; fi; if [ $failed -ne 0 ]; then exit 1; fi; done