Skip to content

Commit 0a04545

Browse files
committed
nightly
1 parent fc35706 commit 0a04545

1 file changed

Lines changed: 26 additions & 25 deletions

File tree

.github/workflows/iwyu.yml

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -91,31 +91,6 @@ jobs:
9191
# on Apple Silicon files are symlinked under /opt/homebrew/bin
9292
ln -s /opt/homebrew/bin/iwyu_tool.py /usr/local/bin/iwyu_tool
9393
94-
- name: Install clang
95-
if: contains(matrix.os, 'ubuntu') && matrix.nightly
96-
run: |
97-
sudo apt-get purge --auto-remove llvm-15 clang-15 python3-lldb-14 llvm-14 clang-14 llvm-13 clang-13
98-
wget https://apt.llvm.org/llvm.sh
99-
chmod +x llvm.sh
100-
sudo ./llvm.sh 23
101-
sudo apt-get install -y clang-23 libclang-23-dev
102-
103-
- name: check out include-what-you-use
104-
if: contains(matrix.os, 'ubuntu') && matrix.nightly
105-
uses: actions/checkout@v4
106-
with:
107-
persist-credentials: false
108-
repository: 'include-what-you-use/include-what-you-use'
109-
path: 'include-what-you-use'
110-
111-
- name: build include-what-you-use
112-
if: contains(matrix.os, 'ubuntu') && matrix.nightly
113-
run: |
114-
cmake -S include-what-you-use -B include-what-you-use-build -DCMAKE_BUILD_TYPE=Release
115-
env:
116-
CC: clang-23
117-
CXX: clang++-23
118-
11994
# Fails on OpenSUSE:
12095
# Warning: Failed to restore: Tar failed with error: Unable to locate executable file: tar. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
12196
# Also the shell is broken afterwards:
@@ -162,6 +137,32 @@ jobs:
162137
make -C cmake.output gui-build-deps
163138
make -C cmake.output triage-build-ui-deps
164139
140+
- name: Install clang
141+
if: contains(matrix.os, 'ubuntu') && matrix.nightly
142+
run: |
143+
sudo apt-get purge --auto-remove llvm-15 clang-15 python3-lldb-14 llvm-14 clang-14 llvm-13 clang-13
144+
wget https://apt.llvm.org/llvm.sh
145+
chmod +x llvm.sh
146+
sudo ./llvm.sh 23
147+
sudo apt-get install -y libclang-23-dev
148+
149+
- name: check out include-what-you-use
150+
if: contains(matrix.os, 'ubuntu') && matrix.nightly
151+
uses: actions/checkout@v4
152+
with:
153+
persist-credentials: false
154+
repository: 'include-what-you-use/include-what-you-use'
155+
path: 'include-what-you-use'
156+
157+
- name: build include-what-you-use
158+
if: contains(matrix.os, 'ubuntu') && matrix.nightly
159+
run: |
160+
cmake -S include-what-you-use -B include-what-you-use-build -DCMAKE_BUILD_TYPE=Release
161+
cmake --build include-what-you-use-build -- -j$(nproc)
162+
env:
163+
CC: clang-23
164+
CXX: clang++-23
165+
165166
- name: iwyu_tool
166167
run: |
167168
iwyu_tool -p cmake.output -j $(nproc) -- -w -Xiwyu --max_line_length=1024 -Xiwyu --comment_style=long -Xiwyu --quoted_includes_first -Xiwyu --update_comments ${{ matrix.mapping_file_opt }} ${{ matrix.clang_inc }} > iwyu.log

0 commit comments

Comments
 (0)