lib/x86/crc32: add VPCLMULQDQ implementations of CRC-32 #420
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [pull_request] | |
jobs: | |
windows-visualstudio-build-and-test: | |
name: Build and test (Windows, ${{matrix.gen}}, ${{matrix.toolset}}, ${{matrix.vs}}) | |
strategy: | |
matrix: | |
include: | |
- {os: windows-2022, gen: "Visual Studio 17 2022", toolset: v143, vs: x64, vcpkg: x64-windows} | |
- {os: windows-2022, gen: "Visual Studio 17 2022", toolset: ClangCL, vs: x64, vcpkg: x64-windows} | |
- {os: windows-2022, gen: "Visual Studio 17 2022", toolset: v143, vs: Win32, vcpkg: x86-windows} | |
- {os: windows-2022, gen: "Visual Studio 17 2022", toolset: ClangCL, vs: Win32, vcpkg: x86-windows} | |
- {os: windows-2019, gen: "Visual Studio 16 2019", toolset: v142, vs: x64, vcpkg: x64-windows} | |
- {os: windows-2019, gen: "Visual Studio 16 2019", toolset: v142, vs: Win32, vcpkg: x86-windows} | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: microsoft/setup-msbuild@v2 | |
- run: vcpkg install zlib:${{matrix.vcpkg}} | |
- run: > | |
echo C:\vcpkg\packages\zlib_${{matrix.vcpkg}}\bin | |
| Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
# Note: as per the CMake documentation, DESTDIR is unsupported on Windows. | |
- run: > | |
cmake -B build -G "${{matrix.gen}}" -T ${{matrix.toolset}} | |
-A ${{matrix.vs}} -DLIBDEFLATE_BUILD_TESTS=1 | |
-DCMAKE_C_FLAGS="/W4 /WX /DLIBDEFLATE_ENABLE_ASSERTIONS /IC:\vcpkg\packages\zlib_${{matrix.vcpkg}}\include" | |
-DZLIB_LIBRARY=C:\vcpkg\packages\zlib_${{matrix.vcpkg}}\lib\zlib.lib | |
-DCMAKE_INSTALL_PREFIX=build\install | |
- run: cmake --build build --verbose --config Debug | |
- run: cmake --install build --verbose --config Debug | |
- run: ctest --test-dir build -C Debug | |
windows-visualstudio-build: | |
name: Build (Windows, Visual Studio ${{matrix.toolset}}, ${{matrix.platform}}) | |
strategy: | |
matrix: | |
platform: [ARM64, ARM] | |
toolset: [v143, ClangCL] | |
exclude: # Exclude unsupported combinations | |
- platform: ARM | |
toolset: ClangCL | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: microsoft/setup-msbuild@v2 | |
# Note: as per the CMake documentation, DESTDIR is unsupported on Windows. | |
- run: > | |
cmake -B build -G "Visual Studio 17 2022" -T ${{matrix.toolset}} | |
-A ${{matrix.platform}} -DCMAKE_C_FLAGS="/W4 /WX" | |
-DCMAKE_INSTALL_PREFIX=build\install | |
- run: cmake --build build --verbose --config Release | |
- run: cmake --install build --verbose --config Release |