Skip to content

Commit 858c537

Browse files
committed
Github actions: install specific clang version
It seems that the image that github provides has clang18, and a newer visual studio. Both of this collide. From now on, a specific clang is installed. This is reported here: actions/runner-images#12435 This is done only on Windows, as Linux/OS have no such problems.
1 parent 534db32 commit 858c537

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,22 @@ jobs:
6868
python-version: "3.11"
6969
- name: Install cmake-format
7070
run: pip3 install cmake-format
71+
- name: Set up Clang 19.1.7
72+
if: matrix.config.os == 'windows-2022' && matrix.config.cc == 'clang'
73+
uses: egor-tensin/setup-clang@v1
74+
with:
75+
version: 19.1.7
76+
platform: x64
7177
- name: Install missing packages (linux)
7278
if: matrix.config.os == 'ubuntu-22.04'
73-
run: |
74-
sudo apt install libcups2-dev
79+
run: sudo apt install libcups2-dev
7580
- name: Setup MSVC (Windows)
7681
if: ${{ matrix.config.cxx == 'cl' }}
7782
uses: ilammy/msvc-dev-cmd@v1
7883
- name: Configure
7984
working-directory: ${{ github.workspace }}
8085
id: runcmake
81-
run: |
82-
cmake -B "build/${{ matrix.config.build_dir }}" -G "${{ matrix.generators }}" -DCMAKE_BUILD_TYPE="${{ matrix.build_type }}" -DCMAKE_C_COMPILER=${{ matrix.config.cc }} -DCMAKE_CXX_COMPILER=${{ matrix.config.cxx }}
86+
run: cmake -B "build/${{ matrix.config.build_dir }}" -G "${{ matrix.generators }}" -DCMAKE_BUILD_TYPE="${{ matrix.build_type }}" -DCMAKE_C_COMPILER=${{ matrix.config.cc }} -DCMAKE_CXX_COMPILER=${{ matrix.config.cxx }}
8387
- name: Build
8488
working-directory: ${{ github.workspace }}
8589
id: runcmakebuild

0 commit comments

Comments
 (0)