Skip to content

Commit

Permalink
shoud_work
Browse files Browse the repository at this point in the history
  • Loading branch information
gjasny committed Mar 3, 2021
1 parent 8f591e0 commit be61a30
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/linting.yml
Expand Up @@ -21,28 +21,20 @@ jobs:
sudo apt-get remove -y --purge man-db # avoid time-consuming trigger
sudo add-apt-repository ppa:gjasny/iwyu
sudo apt-get update
sudo apt-get install -y clang-11 libstdc++-10-dev iwyu libbenchmark-dev libcurl4-openssl-dev ninja-build zlib1g-dev
sudo apt-get install -y clang-11 iwyu libbenchmark-dev libcurl4-openssl-dev ninja-build zlib1g-dev
#- name: "IWYU Version"
# run: /usr/bin/include-what-you-use --version

#- name: "CMake Configure"
# run: cmake -GNinja -DRUN_IWYU=ON -DCMAKE_VERBOSE_MAKEFILE=ON -S ${{ github.workspace }} -B ${{ github.workspace }}/_build

#- name: "manual"
# run: /usr/bin/include-what-you-use /usr/bin/c++ -Icore/include -I_build/core/include --std=c++11 -c core/src/family.cc

#- name: Build
# run: cmake --build ${{ github.workspace }}/_build
- name: "CMake Configure"
run: cmake -GNinja -DRUN_IWYU=ON -S ${{ github.workspace }} -B ${{ github.workspace }}/_build

#- name: Build
# run: cmake --build ${{ github.workspace }}/_build 2>&1 | tee ${{ github.workspace }}/output.txt
- name: Build
run: cmake --build ${{ github.workspace }}/_build 2>&1 | tee ${{ github.workspace }}/output.txt

#- name: Check build output
# run: if egrep -q 'should (add|remove) these lines' ${{ github.workspace }}/output.txt; then exit 1; fi
- name: Check build output
run: if egrep -q 'should (add|remove) these lines' ${{ github.workspace }}/output.txt; then exit 1; fi

- name: "CMake Configure"
run: cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -S ${{ github.workspace }} -B ${{ github.workspace }}/_build
#- name: "CMake Configure"
# run: cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -S ${{ github.workspace }} -B ${{ github.workspace }}/_build

#- name: "Run IWYU"
# run: iwyu_tool -p ${{ github.workspace }}/_build core push pull -- -Xiwyu --mapping_file=${{ github.workspace }}/cmake/googletest.imp -Xiwyu --no_fwd_decls 2>&1 | tee ${{ github.workspace }}/output.txt

- name: "Run IWYU"
run: iwyu_tool -p ${{ github.workspace }}/_build core push pull -- -Xiwyu --mapping_file=${{ github.workspace }}/cmake/googletest.imp -Xiwyu --no_fwd_decls

0 comments on commit be61a30

Please sign in to comment.