<commit_before>name: build_and_test

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  ci:
    name: "Build (and test) on ${{ matrix.os }}-${{ matrix.compiler }}"
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        include:
            - build: "Ubuntu Focal clang-10"
              os: ubuntu-20.04
              compiler: "clang++-10"
              build_type: Release

            - build: "Ubuntu Focal gcc-10 and testcases"
              os: ubuntu-20.04
              compiler: g++-10
              compiler_flags: "-g -O0 --coverage"
              build_type: Debug

            - build: "Ubuntu Focal gcc-9"
              os: ubuntu-20.04
              compiler: g++-9
              build_type: Release

            - build: "Mac OSX clang-10"
              os: macos-10.15
              compiler: clang++-10
              build_type: Release
    steps:
      - uses: actions/checkout@v2
      - name: Install (Ubuntu)
        if: runner.os == 'Linux'
        run: |
          sudo apt-get install -y --no-install-recommends ninja-build clang-tidy-10
          sudo ln -s /usr/bin/clang-tidy-10 /usr/local/bin/clang-tidy
      - name: Install (macOS)
        if: runner.os == 'macOS'
        run: |
          brew install ninja
          sudo ln -s /usr/local/opt/llvm/bin/clang-tidy /usr/local/bin/clang-tidy
      - name: Set environment variables
        run: |
          echo BUILD_TYPE="${{ matrix.build_type }}" >> $GITHUB_ENV
          echo CXX="${{ matrix.config.compiler }}" >> $GITHUB_ENV
          echo CXXFLAGS="${{ matrix.config.compiler_flags }}" >> $GITHUB_ENV
          echo LDFLAGS="${{ matrix.config.compiler_flags }}" >> $GITHUB_ENV
        # '>' converts newlines into spaces
      - name: Configure
        run: >
          cmake
          -B build
          -G Ninja
          -DBUILD_SHARED_LIBS=ON
      - name: Build
        run: cmake --build build
      #- name: Test<commit_msg>Intall libcurl dev package as well<commit_after>name: build_and_test

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  ci:
    name: "Build (and test) on ${{ matrix.os }}-${{ matrix.compiler }}"
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        include:
            - build: "Ubuntu Focal clang-10"
              os: ubuntu-20.04
              compiler: "clang++-10"
              build_type: Release

            - build: "Ubuntu Focal gcc-10 and testcases"
              os: ubuntu-20.04
              compiler: g++-10
              compiler_flags: "-g -O0 --coverage"
              build_type: Debug

            - build: "Ubuntu Focal gcc-9"
              os: ubuntu-20.04
              compiler: g++-9
              build_type: Release

            - build: "Mac OSX clang-10"
              os: macos-10.15
              compiler: clang++-10
              build_type: Release
    steps:
      - uses: actions/checkout@v2
      - name: Install (Ubuntu)
        if: runner.os == 'Linux'
        run: |
          sudo apt-get install -y --no-install-recommends ninja-build clang-tidy-10 libcurl4-openssl-dev
          sudo ln -s /usr/bin/clang-tidy-10 /usr/local/bin/clang-tidy
      - name: Install (macOS)
        if: runner.os == 'macOS'
        run: |
          brew install ninja
          sudo ln -s /usr/local/opt/llvm/bin/clang-tidy /usr/local/bin/clang-tidy
      - name: Set environment variables
        run: |
          echo BUILD_TYPE="${{ matrix.build_type }}" >> $GITHUB_ENV
          echo CXX="${{ matrix.config.compiler }}" >> $GITHUB_ENV
          echo CXXFLAGS="${{ matrix.config.compiler_flags }}" >> $GITHUB_ENV
          echo LDFLAGS="${{ matrix.config.compiler_flags }}" >> $GITHUB_ENV
        # '>' converts newlines into spaces
      - name: Configure
        run: >
          cmake
          -B build
          -G Ninja
          -DBUILD_SHARED_LIBS=ON
      - name: Build
        run: cmake --build build
      #- name: Test
{'fraction_non_alphanumeric': 0.12086258776328987, 'fraction_numerical': 0.0183049147442327, 'mean_word_length': 1.5294863665187064, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '2253387', 'n_tokens_mistral': 1350, 'n_tokens_neox': 1252, 'n_words': 301}