Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clang-cl for MSVC 2019 to ci.yml #637

Merged
merged 1 commit into from
Dec 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ jobs:
fail-fast: false # 'false' means Don't stop matrix workflows even if some matrix failed.
matrix:
system: [
{ os: windows-2022, vc: "VC++ 2022" },
{ os: windows-2019, vc: "VC++ 2019" },
{ os: windows-2016, vc: "VC++ 2017" }, # windows-2016 will be removed on March 15, 2022.
{ os: windows-2022, vc: "VC++ 2022", clangcl: 'false', }, # CMake failed to configure clang-cl with VC++2022.
{ os: windows-2019, vc: "VC++ 2019", clangcl: 'true', },
{ os: windows-2016, vc: "VC++ 2017", clangcl: 'false', }, # windows-2016 will be removed on March 15, 2022.
]
arch: [ x64, Win32, ARM, ARM64 ]
steps:
Expand All @@ -398,6 +398,21 @@ jobs:
run: |
.\cmake_unofficial\build\Release\xxhsum.exe -bi1

- name: Build ${{ matrix.system.os }}, clang-cl, ${{ matrix.arch }}
if: ${{ matrix.system.clangcl == 'true' }}
run: |
cd cmake_unofficial
mkdir build-clang-cl
cd build-clang-cl
cmake .. -DCMAKE_BUILD_TYPE=Release -A x64 -DCMAKE_GENERATOR_TOOLSET=ClangCL
cmake --build . --config Release

- name: Test (clang-cl)
# Run benchmark for testing only if target arch is x64 or Win32.
if: ${{ matrix.system.clangcl == 'true' && ( matrix.arch == 'x64' || matrix.arch == 'Win32' ) }}
run: |
.\cmake_unofficial\build-clang-cl\Release\xxhsum.exe -bi1


# Windows, { mingw64, mingw32 }
#
Expand Down