<commit_before>name: Build and test
on: [pull_request, push]

jobs:
  linux-build:
    name: Build and test on Linux
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: ada-actions/toolchain@ce2020
      with:
        distrib: community
    - uses: ada-actions/toolchain@ce2020
      with:
        distrib: community
        target: arm-elf
    - uses: ada-actions/toolchain@ce2020
      with:
        distrib: community
        target: riscv32-elf
    - name: Install Python 3.x (required for the testsuite)
      uses: actions/setup-python@v2
      with:
        python-version: '3.x'
    - run: python3 $PWD/scripts/install_dependencies.py
    - run: python3 $PWD/scripts/build_all_examples.py
    - run: python3 $PWD/testsuite/run.py

  win-build:
    name: Build and test on Windows
    runs-on: windows-latest
    steps:
    - uses: actions/checkout@v1
    - uses: ada-actions/toolchain@ce2020
      with:
        distrib: community
    - uses: ada-actions/toolchain@ce2020
      with:
        distrib: community
        target: arm-elf
    - name: Install Python 3.x (required for the testsuite)
      uses: actions/setup-python@v2
      with:
        python-version: '3.x'
    - name: Remove built-in arm-eabi Ravenscar run-times
      run:  rm -Recurse -Force "d:\a\_temp\gnat-2020-20200429-arm-elf-windows64-bin\arm-eabi\lib\gnat\ravenscar*"
      shell: pwsh
    - name: Remove built-in arm-eabi ZFP run-times
      run:  rm -Recurse -Force "d:\a\_temp\gnat-2020-20200429-arm-elf-windows64-bin\arm-eabi\lib\gnat\zfp*"
      shell: pwsh

    - run: python $PWD/scripts/install_dependencies.py
    - run: python $PWD/scripts/build_all_examples.py
    - run: python $PWD/testsuite/run.py<commit_msg>Fix GH workflow on Windows (#361)<commit_after>name: Build and test
on: [pull_request, push]

jobs:
  linux-build:
    name: Build and test on Linux
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: ada-actions/toolchain@ce2020
      with:
        distrib: community
    - uses: ada-actions/toolchain@ce2020
      with:
        distrib: community
        target: arm-elf
    - uses: ada-actions/toolchain@ce2020
      with:
        distrib: community
        target: riscv32-elf
    - name: Install Python 3.x (required for the testsuite)
      uses: actions/setup-python@v2
      with:
        python-version: '3.x'
    - run: python3 $PWD/scripts/install_dependencies.py
    - run: python3 $PWD/scripts/build_all_examples.py
    - run: python3 $PWD/testsuite/run.py

  win-build:
    name: Build and test on Windows
    runs-on: windows-latest
    steps:
    - uses: actions/checkout@v1
    - uses: ada-actions/toolchain@ce2020
      with:
        distrib: community
    - uses: ada-actions/toolchain@ce2020
      with:
        distrib: community
        target: arm-elf
    - name: Install Python 3.x (required for the testsuite)
      uses: actions/setup-python@v2
      with:
        python-version: '3.x'
    - name: Remove built-in arm-eabi Ravenscar run-times
      run:  rm -Recurse -Force "d:\a\_temp\gnat-2020-20200818-arm-elf-windows64-bin\arm-eabi\lib\gnat\ravenscar*"
      shell: pwsh
    - name: Remove built-in arm-eabi ZFP run-times
      run:  rm -Recurse -Force "d:\a\_temp\gnat-2020-20200818-arm-elf-windows64-bin\arm-eabi\lib\gnat\zfp*"
      shell: pwsh

    - run: python $PWD/scripts/install_dependencies.py
    - run: python $PWD/scripts/build_all_examples.py
    - run: python $PWD/testsuite/run.py
{'fraction_non_alphanumeric': 0.11076130509444762, 'fraction_numerical': 0.035775615340583856, 'mean_word_length': 2.3932038834951457, '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': '5687383', 'n_tokens_mistral': 1309, 'n_tokens_neox': 1210, 'n_words': 270}