Skip to content

Commit

Permalink
crustify; check formatting in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Aug 8, 2021
1 parent 0b36ece commit 0f12003
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/CI-unixish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ jobs:
with:
python-version: 3.9

- name: Cache uncrustify
uses: actions/cache@v2
id: cache-uncrustify
with:
path: |
~/uncrustify
key: ${{ runner.os }}-uncrustify

- name: build uncrustify
if: steps.cache-uncrustify.outputs.cache-hit != 'true'
run: |
wget https://github.com/uncrustify/uncrustify/archive/refs/tags/uncrustify-0.72.0.tar.gz
tar xzvf uncrustify-0.72.0.tar.gz && cd uncrustify-uncrustify-0.72.0 && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j$(nproc) -s && mkdir ~/uncrustify && cp uncrustify ~/uncrustify/
- name: Install missing software on ubuntu 18.04
if: matrix.os == 'ubuntu-18.04'
run: |
Expand Down Expand Up @@ -54,6 +68,10 @@ jobs:
with:
modules: 'qtcharts'

- name: Uncrustify check
run: |
~/uncrustify/uncrustify -c .uncrustify.cfg -l CPP --check */*.cpp */*.h
- name: Test CMake build
run: |
mkdir cmake.output
Expand Down Expand Up @@ -183,3 +201,4 @@ jobs:
run: |
pushd oss-fuzz
make -j$(nproc) CXX=clang++ CXXFLAGS="-fsanitize=address" fuzz-client translate

0 comments on commit 0f12003

Please sign in to comment.