diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml new file mode 100644 index 00000000..91d63d23 --- /dev/null +++ b/.github/workflows/cppcheck.yml @@ -0,0 +1,17 @@ +name: cppcheck static analyser + +on: [push, pull_request] + +jobs: + build: + name: Ubuntu Latest + runs-on: ubuntu-latest + steps: + - run: sudo apt update && sudo apt install -y cppcheck + - 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_CPPCHECK=ON .. + working-directory: build + - run: cmake --build ./build/