|
91 | 91 | # on Apple Silicon files are symlinked under /opt/homebrew/bin |
92 | 92 | ln -s /opt/homebrew/bin/iwyu_tool.py /usr/local/bin/iwyu_tool |
93 | 93 |
|
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 | | - |
119 | 94 | # Fails on OpenSUSE: |
120 | 95 | # 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. |
121 | 96 | # Also the shell is broken afterwards: |
@@ -162,6 +137,32 @@ jobs: |
162 | 137 | make -C cmake.output gui-build-deps |
163 | 138 | make -C cmake.output triage-build-ui-deps |
164 | 139 |
|
| 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 | + |
165 | 166 | - name: iwyu_tool |
166 | 167 | run: | |
167 | 168 | 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