<commit_before>name: windows-build

on: [push, pull_request]

jobs:
  windows-build-headless:
    runs-on: windows-latest

    steps:

    - name: Checkout
      uses: actions/checkout@v1

    - name: Configure
      working-directory: bin
      shell: cmd
      run: |
        cmake ..\Superbuild -DCMAKE_BUILD_TYPE=Release -G"Visual Studio 16 2019" -Ax64 -DBUILD_HEADLESS:BOOL=ON -DBUILD_WITH_PYTHON:BOOL=OFF

    - name: Compile
      working-directory: bin
      shell: cmd
      run: cmake --build . --config Release -j 3

    - name: Package
      working-directory: bin/SCIRun
      shell: cmd
      run: cmake --build . --config Release --target package

    - name: Upload installer
      uses: actions/upload-artifact@v1
      with:
        name: SCIRunWindows
        path: bin/SCIRun/SCIRun-5.0.beta.X-win64.exe

#    - name: Release
#      uses: softprops/action-gh-release@v1
#      if: startsWith(github.ref, 'refs/tags/')
#      with:
#        files: build/gh-greets-qt_installer.exe
#      env:
#        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  windows-build:
    runs-on: windows-latest

    steps:

    - name: Checkout
      uses: actions/checkout@v1

    - name: Install Qt
      uses: ouuan/install-qt-action@ouuan
      with:
        version: 5.13.1
        target: desktop
        host: windows
        arch: win64_msvc2017_64
        install-deps: true

    - name: Print out Qt directory
      run: echo $Env:Qt5_Dir

    - name: Configure
      working-directory: bin
      run: |
        cmake ..\Superbuild -DCMAKE_BUILD_TYPE=Release -G"Visual Studio 16 2019" -Ax64 -DQt5_PATH:PATH="$env:Qt5_Dir" -DBUILD_WITH_PYTHON:BOOL=OFF
    
    # - name: Compile
    #   working-directory: bin
    #   shell: cmd
    #   run: cmake --build . --config Release -j 3<commit_msg>Build Qt Windows & package<commit_after>name: windows-build

on: [push, pull_request]

jobs:
  windows-build-headless:
    runs-on: windows-latest

    steps:

    - name: Checkout
      uses: actions/checkout@v1

    - name: Configure
      working-directory: bin
      shell: cmd
      run: |
        cmake ..\Superbuild -DCMAKE_BUILD_TYPE=Release -G"Visual Studio 16 2019" -Ax64 -DBUILD_HEADLESS:BOOL=ON -DBUILD_WITH_PYTHON:BOOL=OFF

    - name: Compile
      working-directory: bin
      shell: cmd
      run: cmake --build . --config Release -j 3

    - name: Package
      working-directory: bin/SCIRun
      shell: cmd
      run: cmake --build . --config Release --target package

    - name: Upload installer
      uses: actions/upload-artifact@v1
      with:
        name: SCIRunWindowsHeadlessInstaller
        path: bin/SCIRun/SCIRun-5.0.beta.X-win64.exe

#    - name: Release
#      uses: softprops/action-gh-release@v1
#      if: startsWith(github.ref, 'refs/tags/')
#      with:
#        files: build/gh-greets-qt_installer.exe
#      env:
#        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  windows-build:
    runs-on: windows-latest

    steps:

    - name: Checkout
      uses: actions/checkout@v1

    - name: Install Qt
      uses: ouuan/install-qt-action@ouuan
      with:
        version: 5.13.1
        target: desktop
        host: windows
        arch: win64_msvc2017_64
        install-deps: true

    - name: Print out Qt directory
      run: echo $Env:Qt5_Dir

    - name: Configure
      working-directory: bin
      run: |
        cmake ..\Superbuild -DCMAKE_BUILD_TYPE=Release -G"Visual Studio 16 2019" -Ax64 -DQt5_PATH:PATH="$env:Qt5_Dir" -DBUILD_WITH_PYTHON:BOOL=OFF
    
    - name: Compile
      working-directory: bin
      shell: cmd
      run: cmake --build . --config Release -j 3

    - name: Package
      working-directory: bin/SCIRun
      shell: cmd
      run: cmake --build . --config Release --target package

    - name: Upload installer
      uses: actions/upload-artifact@v1
      with:
        name: SCIRunWindowsInstaller
        path: bin/SCIRun/SCIRun-5.0.beta.X-win64.exe
{'fraction_non_alphanumeric': 0.10759816420193778, 'fraction_numerical': 0.022182559918408975, 'mean_word_length': 2.148475120385233, 'pattern_counts': {'":': 0, '<': 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': '7194045', 'n_tokens_mistral': 1403, 'n_tokens_neox': 1312, 'n_words': 305}