Skip to content

Commit 8150c7a

Browse files
committed
Add clang on the CI for windows
1 parent 25ab11a commit 8150c7a

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/cpp-ci-serial-programs.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,25 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
os: [windows-2025, macos-13, ubuntu-24.04]
13+
compiler: ['default', 'clang']
1314
qt_version: ['6.9.0']
1415
include:
15-
- qt_version: '6.9.0'
16-
qt_version_major: '6'
17-
qt_modules: 'qtmultimedia qtserialport'
16+
- qt_version: '6.9.0'
17+
qt_version_major: '6'
18+
qt_modules: 'qtmultimedia qtserialport'
19+
20+
- os: 'windows-2025'
21+
compiler: 'clang'
22+
cmake_additional_param: '-T ClangCL'
23+
24+
- os: 'ubuntu-24.04'
25+
compiler: 'clang'
26+
cmake_additional_param: '-DCMAKE_CXX_COMPILER=clang++'
27+
28+
exclude:
29+
- os: 'macos-13'
30+
compiler: 'clang'
31+
# Excluded because macos default toolset is already clang
1832

1933
steps:
2034
- uses: actions/checkout@v4
@@ -42,7 +56,7 @@ jobs:
4256
cd Arduino-Source/SerialPrograms
4357
mkdir bin
4458
cd bin
45-
cmake .. -DQT_MAJOR:STRING=${{ matrix.qt_version_major }}
59+
cmake .. -DQT_MAJOR:STRING=${{ matrix.qt_version_major }} ${{ matrix.cmake_additional_param }}
4660
cmake --build . --config Release --parallel 10
4761
- name: Copy resources
4862
if: startsWith(matrix.os, 'windows')

vcpkg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 0cf34c184ce990471435b5b9c92edcf7424930b1

0 commit comments

Comments
 (0)