Skip to content

Commit cf25204

Browse files
Enhance CMake build process for Clang by specifying individual targets
1 parent 8186d0c commit cf25204

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,19 @@ jobs:
5252
- name: Build
5353
run: |
5454
cd build
55-
cmake --build . --parallel --config ${{ matrix.build_type }}
55+
if [ "${{ matrix.compiler }}" = "clang" ]; then
56+
cmake --build . --target libcsv --parallel --config ${{ matrix.build_type }}
57+
cmake --build . --target csvcpp --parallel --config ${{ matrix.build_type }}
58+
cmake --build . --target csvtest --parallel --config ${{ matrix.build_type }}
59+
cmake --build . --target csvinfo --parallel --config ${{ matrix.build_type }}
60+
cmake --build . --target csvfix --parallel --config ${{ matrix.build_type }}
61+
cmake --build . --target csvvalid --parallel --config ${{ matrix.build_type }}
62+
else
63+
cmake --build . --parallel --config ${{ matrix.build_type }}
64+
fi
5665
5766
- name: Run tests
67+
if: ${{ matrix.compiler != 'clang' }}
5868
run: |
5969
cd build
6070
cmake --build . --target test_parity --parallel

0 commit comments

Comments
 (0)