cmake-format + miscellaneous tweaks (#13)

* cmake-format + miscellaneous tweaks
* Formatted cmake in examples and tests
* Updated linux-ci.yml artifacts naming
* Updated clang-format
* Fixed submodule branches
This commit is contained in:
Jonathan R. Madsen
2021-09-20 11:12:06 -05:00
zatwierdzone przez GitHub
rodzic e6ead5ab3f
commit 6c93674f92
26 zmienionych plików z 1577 dodań i 1428 usunięć
+25 -2
Wyświetl plik
@@ -10,8 +10,31 @@ on:
branches: [ main, develop ]
jobs:
formatting:
runs-on: ubuntu-18.04
cmake-format:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-pip
python3 -m pip install cmake-format
- name: cmake-format
run: |
set +e
cmake-format -i $(find . -type f | egrep 'CMakeLists.txt|\.cmake$')
if [ $(git diff | wc -l) -gt 0 ]; then
echo -e "\nError! CMake code not formatted. Run cmake-format...\n"
echo -e "\nFiles:\n"
git diff --name-only
echo -e "\nFull diff:\n"
git diff
exit 1
fi
clang-format:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2