<commit_before>---
name: Build

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [windows-latest, ubuntu-latest, macos-latest]
        qt-version: [5.15.2, 5.12.10]
        build-system: [qmake, cmake]
        exclude:
          - os: windows-latest
            qt-version: 5.12.10
            build-system: cmake
        include:
          - os: windows-2016
            qt-version: 5.12.10
            build-system: cmake
      fail-fast: false

    steps:
      - name: Set environment variables for windows-latest
        if: matrix.os == 'windows-latest'
        run: |
            echo "vs_version=2019" >> $GITHUB_ENV
        shell: bash

      - name: Set environment variables for windows-2016
        if: matrix.os == 'windows-2016'
        run: |
            echo "vs_version=2017" >> $GITHUB_ENV
        shell: bash

      - uses: actions/checkout@v2.3.4
        with:
          submodules: true

      - name: Cache Qt
        id: cache-qt
        uses: actions/cache@v2.1.5
        with:
          path: ../Qt
          key: ${{ runner.os }}-QtCache-${{ matrix.qt-version }}-20210109

      # LINUX
      - name: Install p7zip (Ubuntu)
        if: startsWith(matrix.os, 'ubuntu')
        run: sudo apt-get update && sudo apt-get -y install p7zip-full

      - name: Install Qt
        uses: jurplel/install-qt-action@v2
        with:
          aqtversion: '==1.1.1'
          cached: ${{ steps.cache-qt.outputs.cache-hit }}
          extra: --external 7z
          version: ${{ matrix.qt-version }}

      # WINDOWS
      - name: Cache conan packages
        if: startsWith(matrix.os, 'windows')
        uses: actions/cache@v2.1.5
        with:
          key: ${{ runner.os }}-conan-${{ hashFiles('**/conanfile.txt') }}-20210412
          path: C:/.conan/

      - name: Add Conan to path
        if: startsWith(matrix.os, 'windows')
        run: echo "C:\Program Files\Conan\conan\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
        
      - name: Install dependencies (Windows)
        if: startsWith(matrix.os, 'windows')
        run: |
            choco install conan -y
        
      - name: Enable Developer Command Prompt
        if: startsWith(matrix.os, 'windows')
        uses: ilammy/msvc-dev-cmd@v1.7.0

      - name: Build (Windows)
        if: startsWith(matrix.os, 'windows') && matrix.build-system == 'qmake'
        run: |
            mkdir build
            cd build
            conan install ..
            qmake ..
            set cl=/MP
            nmake /S /NOLOGO
            windeployqt release/chatterino.exe --release --no-compiler-runtime --no-translations --no-opengl-sw --dir Chatterino2/
            cp release/chatterino.exe Chatterino2/
            echo nightly > Chatterino2/modes
            7z a chatterino-windows-x86-64.zip Chatterino2/
            <commit_msg>Bump ilammy/msvc-dev-cmd from 1.7.0 to 1.8.0 (#2769)<commit_after>---
name: Build

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [windows-latest, ubuntu-latest, macos-latest]
        qt-version: [5.15.2, 5.12.10]
        build-system: [qmake, cmake]
        exclude:
          - os: windows-latest
            qt-version: 5.12.10
            build-system: cmake
        include:
          - os: windows-2016
            qt-version: 5.12.10
            build-system: cmake
      fail-fast: false

    steps:
      - name: Set environment variables for windows-latest
        if: matrix.os == 'windows-latest'
        run: |
            echo "vs_version=2019" >> $GITHUB_ENV
        shell: bash

      - name: Set environment variables for windows-2016
        if: matrix.os == 'windows-2016'
        run: |
            echo "vs_version=2017" >> $GITHUB_ENV
        shell: bash

      - uses: actions/checkout@v2.3.4
        with:
          submodules: true

      - name: Cache Qt
        id: cache-qt
        uses: actions/cache@v2.1.5
        with:
          path: ../Qt
          key: ${{ runner.os }}-QtCache-${{ matrix.qt-version }}-20210109

      # LINUX
      - name: Install p7zip (Ubuntu)
        if: startsWith(matrix.os, 'ubuntu')
        run: sudo apt-get update && sudo apt-get -y install p7zip-full

      - name: Install Qt
        uses: jurplel/install-qt-action@v2
        with:
          aqtversion: '==1.1.1'
          cached: ${{ steps.cache-qt.outputs.cache-hit }}
          extra: --external 7z
          version: ${{ matrix.qt-version }}

      # WINDOWS
      - name: Cache conan packages
        if: startsWith(matrix.os, 'windows')
        uses: actions/cache@v2.1.5
        with:
          key: ${{ runner.os }}-conan-${{ hashFiles('**/conanfile.txt') }}-20210412
          path: C:/.conan/

      - name: Add Conan to path
        if: startsWith(matrix.os, 'windows')
        run: echo "C:\Program Files\Conan\conan\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
        
      - name: Install dependencies (Windows)
        if: startsWith(matrix.os, 'windows')
        run: |
            choco install conan -y
        
      - name: Enable Developer Command Prompt
        if: startsWith(matrix.os, 'windows')
        uses: ilammy/msvc-dev-cmd@v1.8.0

      - name: Build (Windows)
        if: startsWith(matrix.os, 'windows') && matrix.build-system == 'qmake'
        run: |
            mkdir build
            cd build
            conan install ..
            qmake ..
            set cl=/MP
            nmake /S /NOLOGO
            windeployqt release/chatterino.exe --release --no-compiler-runtime --no-translations --no-opengl-sw --dir Chatterino2/
            cp release/chatterino.exe Chatterino2/
            echo nightly > Chatterino2/modes
            7z a chatterino-windows-x86-64.zip Chatterino2/
            
{'fraction_non_alphanumeric': 0.12289933797317942, 'fraction_numerical': 0.030215583092853507, 'mean_word_length': 1.6163410301953818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5294761', 'n_tokens_mistral': 2001, 'n_tokens_neox': 1850, 'n_words': 446}