<commit_before>on:
  push:
    branches:
    - master
  pull_request:
    branches:
    - master

name: ci

jobs:
    build_opengl_backend:
        name: OpenGL
        runs-on: ${{ matrix.os }}
        env:
          CMAKE_VER: 3.5.1
        strategy:
            fail-fast: false
            matrix:
                window_toolkit: [glfw3, sdl2]
                os: [ubuntu-18.04, macos-latest]

        steps:
            - name: Checkout Repository
              uses: actions/checkout@master

            - name: Download CMake 3.5.1 for Linux
              if: matrix.os != 'macos-latest'
              env:
                  OS_NAME: ${{ matrix.os }}
              run: |
                  cmake_suffix=$(if [ $OS_NAME == 'macos-latest' ]; then echo "Darwin-x86_64"; else echo "Linux-x86_64"; fi)
                  cmake_url=$(echo "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VER}/cmake-${CMAKE_VER}-${cmake_suffix}.tar.gz")
                  wget --quiet "${cmake_url}"
                  tar -xf ./cmake-${CMAKE_VER}-${cmake_suffix}.tar.gz
                  cmake_install_dir=$(echo "cmake-${CMAKE_VER}-x86_64")
                  mv cmake-${CMAKE_VER}-${cmake_suffix} ${cmake_install_dir}
                  cmake_lnx_dir=$(echo "${cmake_install_dir}/bin")
                  cmake_osx_dir=$(echo "${cmake_install_dir}/CMake.app/Contents/bin")
                  cmake_dir=$(if [ $OS_NAME == 'macos-latest' ]; then echo "${cmake_osx_dir}"; else echo "${cmake_lnx_dir}"; fi)
                  echo "CMAKE_PROGRAM=$(pwd)/${cmake_dir}/cmake" >> $GITHUB_ENV

            - name: Install Dependencies for Macos
              if: matrix.os == 'macos-latest'
              run: |
                  brew install boost fontconfig freeimage
                  brew cask install xquartz
                  echo "CMAKE_PROGRAM=cmake" >> $GITHUB_ENV

            - name: Install Common Dependencies for Ubuntu
              if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-18.04'
              run: |
                  sudo apt-get -qq update
                  sudo apt-get install -y libfreeimage-dev libfontconfig1-dev nvidia-cuda-toolkit

            - name: Install Macos Window Toolkit
              if: matrix.os == 'macos-latest'
              env:<commit_msg>Update github action OSX brew command<commit_after>on:
  push:
    branches:
    - master
  pull_request:
    branches:
    - master

name: ci

jobs:
    build_opengl_backend:
        name: OpenGL
        runs-on: ${{ matrix.os }}
        env:
          CMAKE_VER: 3.5.1
        strategy:
            fail-fast: false
            matrix:
                window_toolkit: [glfw3, sdl2]
                os: [ubuntu-18.04, macos-latest]

        steps:
            - name: Checkout Repository
              uses: actions/checkout@master

            - name: Download CMake 3.5.1 for Linux
              if: matrix.os != 'macos-latest'
              env:
                  OS_NAME: ${{ matrix.os }}
              run: |
                  cmake_suffix=$(if [ $OS_NAME == 'macos-latest' ]; then echo "Darwin-x86_64"; else echo "Linux-x86_64"; fi)
                  cmake_url=$(echo "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VER}/cmake-${CMAKE_VER}-${cmake_suffix}.tar.gz")
                  wget --quiet "${cmake_url}"
                  tar -xf ./cmake-${CMAKE_VER}-${cmake_suffix}.tar.gz
                  cmake_install_dir=$(echo "cmake-${CMAKE_VER}-x86_64")
                  mv cmake-${CMAKE_VER}-${cmake_suffix} ${cmake_install_dir}
                  cmake_lnx_dir=$(echo "${cmake_install_dir}/bin")
                  cmake_osx_dir=$(echo "${cmake_install_dir}/CMake.app/Contents/bin")
                  cmake_dir=$(if [ $OS_NAME == 'macos-latest' ]; then echo "${cmake_osx_dir}"; else echo "${cmake_lnx_dir}"; fi)
                  echo "CMAKE_PROGRAM=$(pwd)/${cmake_dir}/cmake" >> $GITHUB_ENV

            - name: Install Dependencies for Macos
              if: matrix.os == 'macos-latest'
              run: |
                  brew install boost fontconfig freeimage
                  brew install --cask xquartz
                  echo "CMAKE_PROGRAM=cmake" >> $GITHUB_ENV

            - name: Install Common Dependencies for Ubuntu
              if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-18.04'
              run: |
                  sudo apt-get -qq update
                  sudo apt-get install -y libfreeimage-dev libfontconfig1-dev nvidia-cuda-toolkit

            - name: Install Macos Window Toolkit
              if: matrix.os == 'macos-latest'
              env:
{'fraction_non_alphanumeric': 0.12162162162162163, 'fraction_numerical': 0.014385353095030515, 'mean_word_length': 1.6313073394495412, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3605838', 'n_tokens_mistral': 1541, 'n_tokens_neox': 1395, 'n_words': 284}