Skip to content

Commit

Permalink
iwyu.yml: use OpenSUSE to get latest include-what-you-use
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Nov 17, 2023
1 parent 4055b0f commit 73e4508
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/iwyu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:

strategy:
matrix:
image: ["fedora:latest"] # "debian:unstable" / "archlinux:latest"
image: ["opensuse/tumbleweed:latest"] # "fedora:latest" / "debian:unstable" / "archlinux:latest"

runs-on: ubuntu-22.04

container:
image: "fedora:latest"
image: ${{ matrix.image }}

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -57,6 +57,14 @@ jobs:
ln -s iwyu_tool.py /usr/bin/iwyu_tool
ln -s qt5 /usr/include/qt
- name: Install missing software on OpenSUSE
if: contains(matrix.image, 'opensuse')
run: |
zypper install -y cmake gcc-c++
zypper install -y wget include-what-you-use-tools
ln -s iwyu_tool.py /usr/bin/iwyu_tool
ln -s qt5 /usr/include/qt
# TODO: switch to Qt 6 after we enabled the Qt mappings again
- name: Prepare CMake
run: |
Expand All @@ -83,7 +91,8 @@ jobs:
- name: iwyu_tool
run: |
PWD=$(pwd)
iwyu_tool -p cmake.output -j $(nproc) -- -w -Xiwyu --max_line_length=1024 -Xiwyu --comment_style=long -Xiwyu --quoted_includes_first -Xiwyu --update_comments -Xiwyu --mapping_file=$PWD/qt5.imp -I/usr/lib/clang/17/include > iwyu.log
# -I/usr/lib/clang/17/include
iwyu_tool -p cmake.output -j $(nproc) -- -w -Xiwyu --max_line_length=1024 -Xiwyu --comment_style=long -Xiwyu --quoted_includes_first -Xiwyu --update_comments -Xiwyu --mapping_file=$PWD/qt5.imp > iwyu.log
- uses: actions/upload-artifact@v3
if: success() || failure()
Expand Down

0 comments on commit 73e4508

Please sign in to comment.