ci: add clang-cl Windows CI jobs#1283
Conversation
serge-sans-paille
left a comment
There was a problem hiding this comment.
I thought you would add the /fp:fast configuration in the associated patch, but that's fine if you keep it in this one too.
Minor nits otherwise looks good.
.github/workflows/windows.yml
Outdated
| uses: actions/checkout@v3 | ||
| - name: Setup | ||
| run: | | ||
| cmake -B _build -DBUILD_TESTS=ON -DDOWNLOAD_DOCTEST=ON -DBUILD_BENCHMARK=${{ matrix.config.benchmark }} -DBUILD_EXAMPLES=${{ matrix.config.examples }} -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_CXX_FLAGS="${{ matrix.config.flags }}" -G Ninja |
There was a problem hiding this comment.
nit: please make this multiline with escaped backslashes so that's it's easier to read, much like https://github.com/xtensor-stack/xsimd/blob/master/.github/workflows/linux.yml#L108
.github/workflows/windows.yml
Outdated
| cmake -B _build -DBUILD_TESTS=ON -DDOWNLOAD_DOCTEST=ON -DBUILD_BENCHMARK=${{ matrix.config.benchmark }} -DBUILD_EXAMPLES=${{ matrix.config.examples }} -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_CXX_FLAGS="${{ matrix.config.flags }}" -G Ninja | ||
| - name: Build | ||
| run: | | ||
| cmake --build _build |
There was a problem hiding this comment.
nit: no need to use the multiline mode here and below
.github/workflows/windows.yml
Outdated
| cmake --build _build | ||
| - name: Testing xsimd | ||
| run: | | ||
| cd _build && ./test/test_xsimd |
There was a problem hiding this comment.
nit: single-line ./_build/test/test_xsimd
012ab77 to
f126e92
Compare
|
LGTM! I'll merge that one and the fasgt-math patch right afterward once I'm happy with both. |
|
Can you rebase on |
6c0ad79 to
b75e659
Compare
Add clang-cl builds for AVX2 and /fp:fast configurations using a strategy matrix to avoid duplication. Uses cmake -B for cleaner build commands.
b75e659 to
694a03b
Compare
f9079f1
into
xtensor-stack:master
|
Thanks! |
Summary
/fp:fastconfigurationscmake -B _build/cmake --build _buildstyle for cleaner build commandsSplit from #1276 per review feedback — the CI additions are independent from the fast-math barrier fix.