Skip to content

ci: add clang-cl Windows CI jobs#1283

Merged
serge-sans-paille merged 1 commit intoxtensor-stack:masterfrom
DiamonDinoia:ci/clang-cl-windows
Apr 3, 2026
Merged

ci: add clang-cl Windows CI jobs#1283
serge-sans-paille merged 1 commit intoxtensor-stack:masterfrom
DiamonDinoia:ci/clang-cl-windows

Conversation

@DiamonDinoia
Copy link
Copy Markdown
Contributor

Summary

  • Add clang-cl CI jobs for Windows using a strategy matrix to test AVX2 and /fp:fast configurations
  • Uses cmake -B _build / cmake --build _build style for cleaner build commands

Split from #1276 per review feedback — the CI additions are independent from the fast-math barrier fix.

Copy link
Copy Markdown
Contributor

@serge-sans-paille serge-sans-paille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: no need to use the multiline mode here and below

cmake --build _build
- name: Testing xsimd
run: |
cd _build && ./test/test_xsimd
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: single-line ./_build/test/test_xsimd

@DiamonDinoia DiamonDinoia force-pushed the ci/clang-cl-windows branch 2 times, most recently from 012ab77 to f126e92 Compare March 28, 2026 22:37
@serge-sans-paille
Copy link
Copy Markdown
Contributor

LGTM! I'll merge that one and the fasgt-math patch right afterward once I'm happy with both.

@serge-sans-paille
Copy link
Copy Markdown
Contributor

Can you rebase on master to trigger the /fp:fast CI? thanks.

@DiamonDinoia DiamonDinoia force-pushed the ci/clang-cl-windows branch 3 times, most recently from 6c0ad79 to b75e659 Compare April 3, 2026 17:45
Add clang-cl builds for AVX2 and /fp:fast configurations using a
strategy matrix to avoid duplication. Uses cmake -B for cleaner build
commands.
@DiamonDinoia DiamonDinoia force-pushed the ci/clang-cl-windows branch from b75e659 to 694a03b Compare April 3, 2026 17:52
@serge-sans-paille serge-sans-paille merged commit f9079f1 into xtensor-stack:master Apr 3, 2026
72 of 73 checks passed
@serge-sans-paille
Copy link
Copy Markdown
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants