<commit_before>name: continuous-integration

# syntax https://help.github.com/en/articles/workflow-syntax-for-github-actions
on:
  pull_request:
    branches:
      - '*'
  push:
    branches:
      - master
    tags:
      - '*'

jobs:
  windows:
    name: Windows

    runs-on: windows-latest

    steps:
      - uses: actions/checkout@v2

      - name: Install Doxygen
        # choco install doxygen.portable # <-- too unreliable.
        run: |
          (New-Object System.Net.WebClient).DownloadFile("https://sourceforge.net/projects/myosin/files/doxygen-1.8.14.windows.x64.bin.zip/download", "doxygen.zip")
          7z x $env:GITHUB_WORKSPACE/doxygen.zip -odoxygen
          echo "$env:GITHUB_WORKSPACE\\doxygen" >> $GITHUB_PATH

      - name: Configure
        run: |
          mkdir $env:GITHUB_WORKSPACE\\build
          chdir $env:GITHUB_WORKSPACE\\build
          # Set the CXXFLAGS environment variable to turn warnings into errors.
          # TODO: Can remove /WX when we use that in CMakeLists.txt.
          cmake -E env CXXFLAGS="/WX" cmake $env:GITHUB_WORKSPACE -LAH -G"Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX=~/simbody-install

      - name: Build
        run: |
          chdir $env:GITHUB_WORKSPACE\\build
          cmake --build . --config Release -- /maxcpucount:4

      - name: Test
        run: |
          chdir $env:GITHUB_WORKSPACE\\build
          ctest --parallel 4 --output-on-failure --build-config Release

      - name: Obtain short git commit hash
        id: commithash
        shell: bash
        # https://stackoverflow.com/questions/58886293/getting-current-branch-and-commit-hash-in-github-action
        run: echo "::set-output name=hash::$(git rev-parse --short HEAD)"

      - name: Install<commit_msg>Update continuous_integration.yml<commit_after>name: continuous-integration

# syntax https://help.github.com/en/articles/workflow-syntax-for-github-actions
on:
  pull_request:
    branches:
      - '*'
  push:
    branches:
      - master
    tags:
      - '*'

jobs:
  windows:
    name: Windows

    runs-on: windows-latest

    steps:
      - uses: actions/checkout@v2

      - name: Install Doxygen
        # choco install doxygen.portable # <-- too unreliable.
        run: |
          (New-Object System.Net.WebClient).DownloadFile("https://sourceforge.net/projects/myosin/files/doxygen-1.8.14.windows.x64.bin.zip/download", "doxygen.zip")
          7z x $env:GITHUB_WORKSPACE/doxygen.zip -odoxygen
          echo "$env:GITHUB_WORKSPACE\\doxygen" >> $GITHUB_PATH

      - name: Configure
        run: |
          mkdir $env:GITHUB_WORKSPACE\\build
          chdir $env:GITHUB_WORKSPACE\\build
          # Set the CXXFLAGS environment variable to turn warnings into errors.
          # TODO: Can remove /WX when we use that in CMakeLists.txt.
          cmake -E env CXXFLAGS="/WX" cmake $env:GITHUB_WORKSPACE -LAH -G"Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX=~/simbody-install

      - name: Build
        run: |
          chdir $env:GITHUB_WORKSPACE\\build
          cmake --build . --config Release -- /maxcpucount:4

      - name: Test
        run: |
          chdir $env:GITHUB_WORKSPACE\\build
          ctest --parallel 4 --output-on-failure --build-config Release

      - name: Obtain short git commit hash
        id: commithash
        shell: bash
        # https://stackoverflow.com/questions/58886293/getting-current-branch-and-commit-hash-in-github-action
        run: echo "::set-output name=hash::$(git rev-parse --short HEAD)"

      - name: Install
{'fraction_non_alphanumeric': 0.11653498871331829, 'fraction_numerical': 0.014672686230248307, 'mean_word_length': 2.2315405651777573, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '7476908', 'n_tokens_mistral': 1206, 'n_tokens_neox': 1130, 'n_words': 242}