🥥 Lint C++ #57
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🥥 Lint C++ | |
on: | |
workflow_dispatch: {} | |
push: | |
paths: | |
- "**.cpp" | |
- "**.h" | |
jobs: | |
lint-cxx: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 32 | |
steps: | |
- name: Clone polytracker repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
fetch-depth: 1 | |
# - name: Install clang-format | |
# run: | | |
# sudo apt-get update -y | |
# sudo apt-get install -y clang-format libgraphviz-dev | |
# - name: Set up Python 3.10 | |
# uses: actions/setup-python@v4 | |
# with: | |
# python-version: "3.x" | |
# - name: C++ lint | |
# run: | | |
# python3 third_party/run-clang-format/run-clang-format.py \ | |
# polytracker/include/polytracker/*.h \ | |
# polytracker/include/polytracker/passes/*.h \ | |
# polytracker/include/taintdag/*.h \ | |
# polytracker/src/passes/*.cpp \ | |
# polytracker/src/polytracker/*.cpp \ | |
# polytracker/src/taint_sources/*.cpp \ | |
# polytracker/src/taintdag/*.cpp | |
- name: Run C++ Linters | |
uses: cpp-linter/cpp-linter-action@v2 | |
id: linter | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
version: 16 | |
style: file | |
- name: Report result | |
if: steps.linter.outputs.checks-failed > 0 | |
run: | |
echo "Some files failed the linting checks!" | |
exit 1 |