<commit_before># Copyright (c) 2021-2022 Morwenn
# SPDX-License-Identifier: MIT

name: MSVC Builds

on:
  push:
    paths:
      - '.github/workflows/build-msvc.yml'
      - 'CMakeLists.txt'
      - 'cmake/**'
      - 'examples/**'
      - 'include/**'
      - 'tests/**'
  pull_request:
    paths:
      - '.github/workflows/build-msvc.yml'
      - 'CMakeLists.txt'
      - 'cmake/**'
      - 'examples/**'
      - 'include/**'
      - 'tests/**'

jobs:
  build:
    runs-on: windows-2019

    strategy:
      fail-fast: false
      matrix:
        build_type: [Debug, Release]

    steps:
      - uses: actions/checkout@v3

      - name: Configure CMake
        shell: pwsh
        working-directory: ${{runner.workspace}}
        run: |
          cmake -H${{github.event.repository.name}} -Bbuild `
                -DCMAKE_CONFIGURATION_TYPES=${{matrix.build_type}} `
                -DCMAKE_BUILD_TYPE=${{matrix.build_type}} `
                -G"Visual Studio 16 2019" -A x64 `
                -DCPPSORT_BUILD_EXAMPLES=ON

      - name: Build the test suite
        working-directory: ${{runner.workspace}}/build
        run: cmake --build . --config ${{matrix.build_type}} -j 2

      - name: Run the test suite
        env:
          CTEST_OUTPUT_ON_FAILURE: 1
        working-directory: ${{runner.workspace}}/build
        run: ctest -C ${{matrix.build_type}} --no-tests=error
<commit_msg>Add CI jobs for clang-cl<commit_after># Copyright (c) 2021-2022 Morwenn
# SPDX-License-Identifier: MIT

name: MSVC Builds

on:
  push:
    paths:
      - '.github/workflows/build-msvc.yml'
      - 'CMakeLists.txt'
      - 'cmake/**'
      - 'examples/**'
      - 'include/**'
      - 'tests/**'
  pull_request:
    paths:
      - '.github/workflows/build-msvc.yml'
      - 'CMakeLists.txt'
      - 'cmake/**'
      - 'examples/**'
      - 'include/**'
      - 'tests/**'

jobs:
  build:
    runs-on: windows-2019

    strategy:
      fail-fast: false
      matrix:
        config:
        - build_type: Release
        - build_type: Debug
        - build_type: Debug
          build_tools: '-T ClangCL'

    steps:
      - uses: actions/checkout@v3

      - name: Configure CMake
        shell: pwsh
        working-directory: ${{runner.workspace}}
        run: |
          cmake -H${{github.event.repository.name}} -Bbuild `
                -DCMAKE_CONFIGURATION_TYPES=${{matrix.config.build_type}} `
                -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} `
                -G"Visual Studio 16 2019" -A x64 ${{matrix.config.build_tools}} `
                -DCPPSORT_BUILD_EXAMPLES=ON

      - name: Build the test suite
        working-directory: ${{runner.workspace}}/build
        run: cmake --build . --config ${{matrix.config.build_type}}

      - name: Run the test suite
        env:
          CTEST_OUTPUT_ON_FAILURE: 1
        working-directory: ${{runner.workspace}}/build
        run: ctest -C ${{matrix.config.build_type}} --no-tests=error

{'fraction_non_alphanumeric': 0.1446923597025017, 'fraction_numerical': 0.015212981744421906, 'mean_word_length': 1.8728155339805825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2340546', 'n_tokens_mistral': 1050, 'n_tokens_neox': 972, 'n_words': 190}