Skip to content

Commit b73ae18

Browse files
committed
ci: Test building with clang-cl
1 parent 10c2c56 commit b73ae18

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/ci.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,17 @@ jobs:
168168
job-type: [standard, fuzz]
169169
include:
170170
- job-type: standard
171+
env_vars: {}
171172
generate-options: '-DBUILD_GUI=ON -DWITH_BDB=ON -DWITH_ZMQ=ON -DBUILD_BENCH=ON -DWERROR=ON'
172-
job-name: 'Win64 native, VS 2022'
173+
job-name: 'Win64 native, MSVC'
174+
- job-type: clang-cl
175+
env_vars: { CXXFLAGS: '-Wno-return-type -Wno-error=conditional-uninitialized -Wno-error=missing-braces' }
176+
generate-options: '-T ClangCL -DBUILD_GUI=ON -DWITH_BDB=ON -DWITH_ZMQ=ON -DBUILD_BENCH=ON -DWERROR=ON'
177+
job-name: 'Win64 native, clang-cl'
173178
- job-type: fuzz
179+
env_vars: {}
174180
generate-options: '-DVCPKG_MANIFEST_NO_DEFAULT_FEATURES=ON -DVCPKG_MANIFEST_FEATURES="wallet" -DBUILD_GUI=OFF -DBUILD_FOR_FUZZING=ON -DWERROR=ON'
175-
job-name: 'Win64 native fuzz, VS 2022'
181+
job-name: 'Win64 native fuzz, MSVC'
176182

177183
steps:
178184
- name: Checkout
@@ -213,6 +219,7 @@ jobs:
213219
key: ${{ github.job }}-vcpkg-binary-${{ hashFiles('cmake_version', 'msbuild_version', 'toolset_version', 'vcpkg.json') }}
214220

215221
- name: Generate build system
222+
env: ${{ matrix.env_vars }}
216223
run: |
217224
cmake -B build --preset vs2022-static -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake" ${{ matrix.generate-options }}
218225
@@ -229,13 +236,13 @@ jobs:
229236
cmake --build . -j $env:NUMBER_OF_PROCESSORS --config Release
230237
231238
- name: Run test suite
232-
if: matrix.job-type == 'standard'
239+
if: matrix.job-type != 'fuzz'
233240
working-directory: build
234241
run: |
235242
ctest --output-on-failure --stop-on-failure -j $env:NUMBER_OF_PROCESSORS -C Release
236243
237244
- name: Run functional tests
238-
if: matrix.job-type == 'standard'
245+
if: matrix.job-type != 'fuzz'
239246
working-directory: build
240247
env:
241248
BITCOIND: '${{ github.workspace }}\build\bin\Release\bitcoind.exe'

0 commit comments

Comments
 (0)