<commit_before>name: Build
on: [push, pull_request]
jobs:
  # Builds performed in docker
  docker_builds:
    strategy:
      fail-fast: false
      matrix:
        config:
        - container: conanio/gcc5
          cxx_mkspec: --cxx_mkspec=cxx_gxx54_x64
          name: GCC 5.4
        - container: conanio/gcc9
          cxx_mkspec: --cxx_mkspec=cxx_gxx92_x64
          name: GCC 9.2
        - container: conanio/clang39
          name: Clang 3.9
          cxx_mkspec: --cxx_mkspec=cxx_clang39_x64
        - container: conanio/clang10
          name: Clang 10
        - container: conanio/clang10
          cxx_mkspec: --cxx_mkspec=cxx_clang10_address_sanitizer_x64
          name: Clang 10 Address Sanitizer
        # TODO: Re-able this when we have fixed memory issue in google-test
        # - container: conanio/clang10 
        #   cxx_mkspec: --cxx_mkspec=cxx_clang10_memory_sanitizer_x64
        #   name: Clang 10 Memory Sanitizer
        - container: conanio/clang10
          cxx_mkspec: --cxx_mkspec=cxx_clang10_thread_sanitizer_x64
          name: Clang 10 Thread Sanitizer
    runs-on: [self-hosted, docker]
    name: ${{ matrix.config.name }}
    container:
      image: ${{ matrix.config.container }}
      options: --user 0:0
      volumes:
        - /home/buildbot/.ssh:/root/.ssh
    steps:
      - name: Install SSH client
        run: apt update && apt -y install openssh-client
      - name: Checkout source code
        uses: actions/checkout@v2
      - name: Waf Configure
        run: python3 waf configure --git_protocol=git@ ${{ matrix.config.cxx_mkspec }}
      - name: Waf Build
        run: |
          echo "::add-matcher::.github/gcc-problem-matcher.json"
          python3 waf
      - name: Waf Test
        run: python3 waf --run_tests
  # Build performed on runner using make specs
  cxx_mkspec:
    strategy:
      fail-fast: false
      matrix:
        config:
        - cxx_mkspec: cxx_msvc16_x86
          name: MSVC 16 32-bit
        - cxx_mkspec: cxx_msvc16_x64
          name: MSVC 16 64-bit
        - cxx_mkspec: cxx_apple_llvm120_x64
          name: Apple LLVM 12.0 64-bit
        - cxx_mkspec: cxx_clang70_x64
          name: Clang 7.0 64-Bit
        - cxx_mkspec: cxx_gxx83_x64
          name: GCC 8.3 64-Bit
    runs-on: [self-hosted, '${{ matrix.config.cxx_mkspec }}']
    name: ${{ matrix.config.name }}
    env:
      python: python3
    steps:
      - name: Rename python3 to python on Windows
        if: runner.os == 'Windows'
        run: echo "python=python" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
      - name: Checkout
        uses: actions/checkout@v2
      - name: Configure
        env:
          GIT_SSH_COMMAND: "${{ runner.os != 'Linux' && 'ssh' || 'ssh -i /home/buildbot/.ssh/id_ed25519 -o IdentitiesOnly=yes' }}"
        run: ${{ env.python }} waf configure --git_protocol=git@ --cxx_mkspec=${{ matrix.config.cxx_mkspec }}
      - name: Build
        run: |
          echo "::add-matcher::.github/gcc-problem-matcher.json"
          ${{ env.python }} waf
      - name: Test
        run: ${{ env.python }} waf --run_tests
  # CMake build
  cmake_build:
    strategy:
      fail-fast: false
      matrix:
        os: [Windows, macOS, Linux]<commit_msg>Update build.yml<commit_after>name: Build
on: [push, pull_request]
jobs:
  # Builds performed in docker
  docker_builds:
    strategy:
      fail-fast: false
      matrix:
        config:
        - container: conanio/gcc5
          cxx_mkspec: --cxx_mkspec=cxx_gxx54_x64
          name: GCC 5.4
        - container: conanio/gcc9
          cxx_mkspec: --cxx_mkspec=cxx_gxx92_x64
          name: GCC 9.2
        - container: conanio/clang39
          name: Clang 3.9
          cxx_mkspec: --cxx_mkspec=cxx_clang39_x64
        - container: conanio/clang10
          name: Clang 10
        - container: conanio/clang10
          cxx_mkspec: --cxx_mkspec=cxx_clang10_address_sanitizer_x64
          name: Clang 10 Address Sanitizer
        # TODO: Re-able this when we have fixed memory issue in google-test
        # - container: conanio/clang10 
        #   cxx_mkspec: --cxx_mkspec=cxx_clang10_memory_sanitizer_x64
        #   name: Clang 10 Memory Sanitizer
        - container: conanio/clang10
          cxx_mkspec: --cxx_mkspec=cxx_clang10_thread_sanitizer_x64
          name: Clang 10 Thread Sanitizer
    runs-on: [self-hosted, docker]
    name: ${{ matrix.config.name }}
    container:
      image: ${{ matrix.config.container }}
      options: --user 0:0
      volumes:
        - /home/buildbot/.ssh:/root/.ssh
    steps:
      - name: Install SSH client
        run: apt update && apt -y install openssh-client
      - name: Checkout source code
        uses: actions/checkout@v2
      - name: Waf Configure
        run: python3 waf configure --git_protocol=git@ ${{ matrix.config.cxx_mkspec }}
      - name: Waf Build
        run: |
          echo "::add-matcher::.github/gcc-problem-matcher.json"
          python3 waf
      - name: Waf Test
        run: python3 waf --run_tests
  # Build performed on runner using make specs
  cxx_mkspec:
    strategy:
      fail-fast: false
      matrix:
        config:
        - cxx_mkspec: cxx_msvc16_x86
          name: MSVC 16 32-bit
        - cxx_mkspec: cxx_msvc16_x64
          name: MSVC 16 64-bit
        - cxx_mkspec: cxx_apple_llvm120_x64
          name: Apple LLVM 12.0 64-bit
        - cxx_mkspec: cxx_clang70_x64
          name: Clang 7.0 64-Bit
        - cxx_mkspec: cxx_gxx83_x64
          name: GCC 8.3 64-Bit
    runs-on: [self-hosted, '${{ matrix.config.cxx_mkspec }}']
    name: ${{ matrix.config.name }}
    env:
      python: python3
    steps:
      - name: Rename python3 to python on Windows
        if: runner.os == 'Windows'
        run: echo "python=python" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
      - name: Checkout
        uses: actions/checkout@v2
      - name: Configure
        env:
          GIT_SSH_COMMAND: "${{ runner.os != 'Linux' && 'ssh' || 'ssh -i /home/buildbot/.ssh/id_ed25519 -o IdentitiesOnly=yes' }}"
        run: ${{ env.python }} waf configure --git_protocol=git@ --cxx_mkspec=${{ matrix.config.cxx_mkspec }}
      - name: Build
        run: |
          echo "::add-matcher::.github/gcc-problem-matcher.json"
          ${{ env.python }} waf
      - name: Test
        run: ${{ env.python }} waf --run_tests
  # CMake build
  cmake_build:
    strategy:
      fail-fast: false
      matrix:
        os: [Windows, macOS_X64, Linux]
{'fraction_non_alphanumeric': 0.1050439611291069, 'fraction_numerical': 0.033317908375751965, 'mean_word_length': 2.01441190144119, 'pattern_counts': {'":': 4, '<': 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': '5752873', 'n_tokens_mistral': 2456, 'n_tokens_neox': 2285, 'n_words': 508}