<commit_before>name: Build

on: [push]

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  build-linux:
    name: Build on Linux
    runs-on: ubuntu-20.04
    env:
      MAKEFLAGS: -j2
    steps:
    - uses: actions/checkout@v3
    - name: Checkout submodules
      run: git submodule update --init deps/json deps/pugixml
    - name: Install dependencies
      run: |
        sudo apt-get install \
            gettext \
            libexpat1-dev \
            libdb++-dev \
            libboost-dev \
            libboost-system-dev \
            libboost-regex-dev \
            libboost-thread-dev \
            libboost-iostreams-dev \
            liblucene++-dev \
            libicu-dev \
            libwxgtk3.0-gtk3-dev \
            libwxgtk-webview3.0-gtk3-dev \
            libgtk-3-dev \
            libgtkspell3-3-dev \
            libcld2-dev \
            libcpprest-dev \
            libsecret-1-dev
    - name: Run bootstrap
      run: ./bootstrap
    - name: Run configure
      run: ./configure
    - name: Run make distcheck
      run: make distcheck

  build-macos:
    name: Build on macOS
    runs-on: macos-11
    steps:
    - uses: actions/checkout@v3
      with:
        submodules: recursive
    - name: Install external dependencies
      run: brew bundle --file=macos/Brewfile
    - uses: sersoft-gmbh/xcodebuild-action@v2
      with:
        workspace: Poedit2.xcworkspace
        scheme: Poedit
        parallelize-targets: true
        action: build<commit_msg>Use ccache for Linux and macOS CI builds<commit_after>name: Build

on: [push]

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  build-linux:
    name: Build on Linux
    runs-on: ubuntu-20.04
    env:
      MAKEFLAGS: -j2
    steps:
    - uses: actions/checkout@v3
    - name: Checkout submodules
      run: git submodule update --init deps/json deps/pugixml
    - name: Install ccache
      uses: hendrikmuhs/ccache-action@v1.2
      with:
        key: ${{ github.job }}
    - name: Add ccache to path
      run: echo "/usr/lib/ccache" >> $GITHUB_PATH
    - name: Install dependencies
      run: |
        sudo apt-get install \
            gettext \
            libexpat1-dev \
            libdb++-dev \
            libboost-dev \
            libboost-system-dev \
            libboost-regex-dev \
            libboost-thread-dev \
            libboost-iostreams-dev \
            liblucene++-dev \
            libicu-dev \
            libwxgtk3.0-gtk3-dev \
            libwxgtk-webview3.0-gtk3-dev \
            libgtk-3-dev \
            libgtkspell3-3-dev \
            libcld2-dev \
            libcpprest-dev \
            libsecret-1-dev
    - name: Run bootstrap
      run: ./bootstrap
    - name: Run configure
      run: ./configure
    - name: Run make distcheck
      run: make distcheck

  build-macos:
    name: Build on macOS
    runs-on: macos-11
    steps:
    - uses: actions/checkout@v3
      with:
        submodules: recursive
    - name: Install ccache
      uses: hendrikmuhs/ccache-action@v1.2
      with:
        key: ${{ github.job }}
    - name: Install external dependencies
      run: brew bundle --file=macos/Brewfile
    - uses: sersoft-gmbh/xcodebuild-action@v2
      with:
        workspace: Poedit2.xcworkspace
        scheme: Poedit
        parallelize-targets: true
        action: build
{'fraction_non_alphanumeric': 0.09865339578454332, 'fraction_numerical': 0.014637002341920375, 'mean_word_length': 1.58667676003028, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4976463', 'n_tokens_mistral': 1141, 'n_tokens_neox': 1097, 'n_words': 245}