From da40fc255775dc5dbeb961c63c404aee22a6c280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Tue, 20 Aug 2024 23:04:10 +0200 Subject: [PATCH] Github Action to run cpplint --- .github/workflows/cpplint.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/cpplint.yml diff --git a/.github/workflows/cpplint.yml b/.github/workflows/cpplint.yml new file mode 100644 index 00000000..125b83dc --- /dev/null +++ b/.github/workflows/cpplint.yml @@ -0,0 +1,16 @@ +name: cpplint C++ linter + +on: [push, pull_request] + +jobs: + build: + name: Ubuntu Latest + runs-on: ubuntu-latest + steps: + - name: Checkout ${{ github.ref_name }} + uses: actions/checkout@v4 + - run: git submodule update --init --recursive + - run: mkdir build + - run: cmake -G "Unix Makefiles" -DSQLITECPP_BUILD_LIBRARY=OFF -DSQLITE_ENABLE_COLUMN_METADATA=OFF -DSQLITECPP_RUN_CPPLINT=ON .. + working-directory: build + - run: cmake --build ./build/